private void PatientsListDGV_CellContentClick(object sender, DataGridViewCellEventArgs e) { PatientForm form = new PatientForm((DataLibrary.Patients)patientsBindingSource.Current, new TubDataBaseEntities()); form.ShowDialog(); if (form.DialogResult == DialogResult.Cancel || form.DialogResult == DialogResult.OK) { filter.DGVrenew(); } }
private void AddPatientButton_Click(object sender, EventArgs e) { PatientForm form = new PatientForm(ctx); form.ShowDialog(); if (form.DialogResult == DialogResult.Cancel) { filter.DGVrenew(); } }