public static FrmHorarioMensualMant Instance() { if (frmInstance == null || frmInstance.IsDisposed == true) { frmInstance = new FrmHorarioMensualMant(); } frmInstance.BringToFront(); return(frmInstance); }
private void btnNuevo_Click(object sender, EventArgs e) { try { var frmHorarioNew = FrmHorarioMensualMant.Instance(); frmHorarioNew.MdiParent = this.MdiParent; frmHorarioNew.Show(); frmHorarioNew.frmList = this; } catch (Exception ex) { Util.ErrorMessage(ex.Message); } }