private void dgvVacaciones_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.RowIndex < 0) { return; } var uiVacacion = (BE.UI.Vacacion) this.dgvVacaciones.CurrentRow.DataBoundItem; if (uiVacacion == null) { return; } var frmVacacionVer = FrmVacacionVer.Instance(); frmVacacionVer.MdiParent = this.MdiParent; frmVacacionVer.Show(); frmVacacionVer.frmList = this; frmVacacionVer.Cargar(uiVacacion); } catch (Exception ex) { Util.ErrorMessage(ex.Message); } }
public static FrmVacacionVer Instance() { if (frmInstance == null || frmInstance.IsDisposed == true) { frmInstance = new FrmVacacionVer(); } frmInstance.BringToFront(); return(frmInstance); }
private void btnVer_Click(object sender, EventArgs e) { try { if (this.dgvVacaciones.CurrentRow != null) { var uiVacacion = (BE.UI.Vacacion) this.dgvVacaciones.CurrentRow.DataBoundItem; var frmVacacionVer = FrmVacacionVer.Instance(); frmVacacionVer.MdiParent = this.MdiParent; frmVacacionVer.Show(); frmVacacionVer.frmList = this; frmVacacionVer.Cargar(uiVacacion); } } catch (Exception ex) { Util.ErrorMessage(ex.Message); } }