Пример #1
0
        public static FrmAsignarBonoMant Instance()
        {
            if (frmInstance == null || frmInstance.IsDisposed == true)
            {
                frmInstance = new FrmAsignarBonoMant();
            }

            frmInstance.BringToFront();

            return(frmInstance);
        }
Пример #2
0
 private void btnNuevo_Click(object sender, EventArgs e)
 {
     try
     {
         var frmBonoMant = FrmAsignarBonoMant.Instance();
         frmBonoMant.MdiParent = this.MdiParent;
         frmBonoMant.Show();
         frmBonoMant.frmList = this;
     }
     catch (Exception ex)
     {
         Util.ErrorMessage(ex.Message);
     }
 }
Пример #3
0
 private void Editar(BE.UI.BonoEmpleado uiBonoEmpleado)
 {
     try
     {
         var frmBonoMant = FrmAsignarBonoMant.Instance();
         frmBonoMant.MdiParent = this.MdiParent;
         frmBonoMant.Show();
         frmBonoMant.frmList = this;
         frmBonoMant.Cargar(uiBonoEmpleado);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }