Beispiel #1
0
 private void openCustomerToolStripMenuItem_Click( object sender, EventArgs e )
 {
     using ( SelectCustomerForm selectCustomerForm = new SelectCustomerForm() )
     {
         if ( selectCustomerForm.ShowDialog() == DialogResult.OK )
         {
             CustomerForm customerForm = new CustomerForm();
             customerForm.Customer = selectCustomerForm.SelectedCustomer;
             customerForm.MdiParent = this;
             customerForm.Show();
         }
     }
 }
Beispiel #2
0
 private void openCustomerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (SelectCustomerForm selectCustomerForm = new SelectCustomerForm())
     {
         if (selectCustomerForm.ShowDialog() == DialogResult.OK)
         {
             CustomerForm customerForm = new CustomerForm();
             customerForm.Customer  = selectCustomerForm.SelectedCustomer;
             customerForm.MdiParent = this;
             customerForm.Show();
         }
     }
 }