how to pass button_click to child window in C#? -


Can anyone here do any favor?

I have a MainWindow with a HideButton and RetrieveButton. When I click on a button, it will run on another childwind. There is an OK button in my hair window.

The question here, set the else statement in C # to the following pseudode?

  Private Zero OKButton_Click (Object Sender, EventArgs e) {// pseudocode if (if HideButton is clicked in MainWindow) {// works} If (Recovery button is clicked in MainWindow ) {// other works}  

Thanks in advance.

If you want to retrieve or hide the child window If you are creating, you can easily pass the parameter either through the constructor or by setting a custom property:

  ChildWindow child = new ChildWindow (); Child. Retrieving = True; Child.Show ();  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -