private void btn_ManageAccount_Click(object sender, EventArgs e) { using (ClientManagerView newForm = new ClientManagerView(dgv_AllAccounts.SelectedRows[0].Cells[2].Value.ToString())) { newForm.ShowDialog(); } LoadAllAccounts(); }
private void btn_FindClient_Click(object sender, EventArgs e) { if (new MainMenuModel().CheckClientsExistence(tb_PersonalID.Text)) { using (ClientManagerView newForm = new ClientManagerView(tb_PersonalID.Text)) { newForm.ShowDialog(); } } else { MessageBox.Show("client not found"); } }