private void ShowAddClientForm() { if (this.addClient.IsDisposed) { addClient = new AddClientForm(); } AttachAsMDIChild(addClient); addClient.Show(); }
private void addClient_Closing(object sender, CancelEventArgs e) { AddClientForm addClient = (AddClientForm)sender; this.LoadData(); }
private void AttachAsMDIChild(AddClientForm addform) { addform.Closing += new CancelEventHandler(addClient_Closing); }
public ClientsGridView() { InitializeComponent(); LoadData(); this.addClient = new AddClientForm(); }