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

            frmInstance.BringToFront();

            return(frmInstance);
        }
Esempio n. 2
0
 private void tsmInformacion_Click(object sender, EventArgs e)
 {
     try
     {
         var frmInformacion = FrmInformacion.Instance();
         frmInformacion.MdiParent     = this;
         frmInformacion.StartPosition = FormStartPosition.CenterScreen;
         frmInformacion.Show();
     }
     catch (Exception ex)
     {
         Util.ErrorMessage(ex.Message);
     }
 }