Exemplo n.º 1
0
        public static FrmAsignarBonoMant Instance()
        {
            if (frmInstance == null || frmInstance.IsDisposed == true)
            {
                frmInstance = new FrmAsignarBonoMant();
            }

            frmInstance.BringToFront();

            return(frmInstance);
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
     }
 }