private void uc_PatientsGrid1_OnDoubleClickEvent(object sender, EventArgs e) { if (uc_PatientsGrid1.SelectedPatientBE == null) return; SelectedPatientBE = uc_PatientsGrid1.SelectedPatientBE; if (State == Fwk.Bases.EntityUpdateEnum.UPDATED) { using (FrmABMPatient frm = new FrmABMPatient(Fwk.Bases.EntityUpdateEnum.UPDATED)) { frm.Patient = SelectedPatientBE; frm.Refresh(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } } return; } //if (State == Fwk.Bases.EntityUpdateEnum.UPDATED) //{ // this.Mutuales = Controller.GetPatient_Mutuals(SelectedPatientBE.IdPatient); //} this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); }
private void uc_PatientsGrid1_OnDoubleClickEvent(object sender, EventArgs e) { if (uc_PatientsGrid1.SelectedPatientBE == null) { return; } SelectedPatientBE = uc_PatientsGrid1.SelectedPatientBE; if (State == Fwk.Bases.EntityUpdateEnum.UPDATED) { using (FrmABMPatient frm = new FrmABMPatient(Fwk.Bases.EntityUpdateEnum.UPDATED)) { frm.Patient = SelectedPatientBE; frm.Refresh(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } } return; } //if (State == Fwk.Bases.EntityUpdateEnum.UPDATED) //{ // this.Mutuales = Controller.GetPatient_Mutuals(SelectedPatientBE.IdPatient); //} this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); }
private void iCrearPatient_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { using (FrmABMPatient frm = new FrmABMPatient()) { //frm.Refresh(); frm.ShowDialog(); } }
private void btnCreatePatient_Click(object sender, EventArgs e) { using (FrmABMPatient frm = new FrmABMPatient()) { if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Refresh(); } } }