Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        private void AddPatientButton_Click(object sender, EventArgs e)
        {
            PatientForm form = new PatientForm(ctx);

            form.ShowDialog();
            if (form.DialogResult == DialogResult.Cancel)
            {
                filter.DGVrenew();
            }
        }