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

            frmInstance.BringToFront();

            return(frmInstance);
        }
예제 #2
0
 private void btnEmpresa_Click(object sender, EventArgs e)
 {
     try
     {
         var frmEmpresa = FrmEmpresa.Instance();
         frmEmpresa.StartPosition = FormStartPosition.CenterScreen;
         frmEmpresa.Show();
     }
     catch (Exception ex)
     {
         General.ErrorMessage(ex.Message);
     }
 }