private void ButtonClientPersonal_Click(object sender, EventArgs e) { using (ClientPersonalInfoControlForm info = new ClientPersonalInfoControlForm(NViewHelper.FormViewMode.Edit, workspaceLibrarian.ClientInformationRegister, ref currentClient)) { info.ShowDialog(); Activate(); } }
private void CreateNewClient() { using (ClientPersonalInfoControlForm client = new ClientPersonalInfoControlForm(NViewHelper.FormViewMode.Create, workspaceLibrarian.ClientInformationRegister, ref selectedClient)) { client.ShowDialog(); Activate(); } }