示例#1
0
        private void btnEditC_Click(object sender, EventArgs e)
        {
            if (dgvClinicians.SelectedColumns.Count > 0)
            {
                object id = dgvClinicians.SelectedRows[0].Cells[0].Value;
                Clinic clinic;

                using (ClinicModel context = new ClinicModel())
                {
                    clinic = context.Clinicians
                             .Where(x => x.Identifier.Equals(id))
                             .Single();
                }

                frmEditClinic frm = new frmEditClinic(clinic);
                frm.ShowDialog();
            }
        }
示例#2
0
        private void btnEditC_Click(object sender, EventArgs e)
        {
            if (dgvClinicians.SelectedColumns.Count > 0)
            {
                object id = dgvClinicians.SelectedRows[0].Cells[0].Value;
                Clinic clinic;

                using (ClinicModel context = new ClinicModel())
                {
                    clinic = context.Clinicians
                        .Where(x => x.Identifier.Equals(id))
                        .Single();
                }

                frmEditClinic frm = new frmEditClinic(clinic);
                frm.ShowDialog();
            }
        }
示例#3
0
        public void ShowEditClinicForm(EditClinicViewModel clinic)
        {
            frmEditClinic frm = new frmEditClinic(clinic);

            frm.ShowDialog();
        }