private void buttonAddNewClient_Click(object sender, EventArgs e) { ClientInfoForm frm = new ClientInfoForm { EditMode = false }; if (frm.ShowDialog() == DialogResult.OK) { RefreshClientList(); } }
private void buttonViewClient_Click(object sender, EventArgs e) { ClientInformation clientInfo = comboBoxEditClients.EditValue as ClientInformation; if (clientInfo != null) { ClientInfoForm frm = new ClientInfoForm { ClientId = clientInfo.Id, EditMode = true }; if (frm.ShowDialog() == DialogResult.OK) { RefreshClientList(); } } }