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

            frmInstance.BringToFront();

            return(frmInstance);
        }
コード例 #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);
            }
        }
コード例 #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;
            }
        }