public static FrmAdelantoMant Instance() { if (frmInstance == null || frmInstance.IsDisposed == true) { frmInstance = new FrmAdelantoMant(); } frmInstance.BringToFront(); return(frmInstance); }
private void btnNuevo_Click(object sender, EventArgs e) { try { var frmAdelantoMant = FrmAdelantoMant.Instance(); frmAdelantoMant.MdiParent = this.MdiParent; frmAdelantoMant.Show(); frmAdelantoMant.frmList = this; } catch (Exception ex) { Util.ErrorMessage(ex.Message); } }
private void Editar(BE.UI.Adelanto uiAdelanto) { try { var frmAdelantoMant = FrmAdelantoMant.Instance(); frmAdelantoMant.MdiParent = this.MdiParent; frmAdelantoMant.Show(); frmAdelantoMant.frmList = this; frmAdelantoMant.Cargar(uiAdelanto); } catch (Exception ex) { throw ex; } }