Пример #1
0
 private void ShowAddClientForm()
 {
     if (this.addClient.IsDisposed)
     {
         addClient = new AddClientForm();
     }
     AttachAsMDIChild(addClient);
     addClient.Show();
 }
Пример #2
0
        private void addClient_Closing(object sender, CancelEventArgs e)
        {
            AddClientForm addClient = (AddClientForm)sender;

            this.LoadData();
        }
Пример #3
0
 private void AttachAsMDIChild(AddClientForm addform)
 {
     addform.Closing += new CancelEventHandler(addClient_Closing);
 }
Пример #4
0
 public ClientsGridView()
 {
     InitializeComponent();
     LoadData();
     this.addClient = new AddClientForm();
 }