Example #1
0
        public static FrmAdelantoMant Instance()
        {
            if (frmInstance == null || frmInstance.IsDisposed == true)
            {
                frmInstance = new FrmAdelantoMant();
            }

            frmInstance.BringToFront();

            return(frmInstance);
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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;
            }
        }