Inheritance: Form
 static void Main()
 {
     do
     {
         var formA = new FormA();
         Application.Run(formA);
         var formB = new FormB(formA.SelectedConfigurationFile);
         Application.Run(formB);
     } while (!IsComplete);
 }
示例#2
0
 public FormB(FormA parent)
 {
     InitializeComponent();
     this.parent = parent;
 }
 private void btnOpen_Click(object sender, RoutedEventArgs e)
 {
     // Passing the delegate to `FormA`
     formA = new FormA(notifyDelegate);
     formA.Show();
 }
示例#4
0
 FormB(FormA parent)
 {
     this.Parent = parent;
 }