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

            frmInstance.BringToFront();

            return(frmInstance);
        }
Пример #2
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            try
            {
                var frmVacacionMant = FrmVacacionMant.Instance();
                frmVacacionMant.MdiParent = this.MdiParent;
                frmVacacionMant.Show();

                frmVacacionMant.frmList = this;
            }
            catch (Exception ex)
            {
                Util.ErrorMessage(ex.Message);
            }
        }