Exemple #1
0
        public FrmSuperUser()
        {
            InitializeComponent();

            this._dialogResult = DialogResult.Abort;
            this._loginName = string.Empty;
            this.FunctionCode = string.Empty;
            this.m_objStateMonitorBLL = new StateMonitorBLL();

            base.AutoCloseFormEvent += new AutoCloseFormDelegate(AlertForm_AutoCloseFormEvent);
            base.AutoCloseAlertEvent += new AutoCloseAlertDelegate(AlertForm_AutoCloseAlertEvent);
        }
 public StateMonitorManager()
 {
     try
     {
         this.m_objStateMonitorBLL = new StateMonitorBLL();
         //this.RefreshMainData(true);
         this.InitProperties();
         this.m_Timer_GetSysInfos = new Timer();
         this.m_Timer_GetSysInfos.Elapsed += new ElapsedEventHandler(m_Timer_GetSysInfos_Elapsed);
         this.m_Timer_GetSysInfos.Interval = 1000 * 2;
         this.m_lIsRunningGetSysInfos = false;
     }
     catch (Exception ex) { this.OnException(mc_strClassName, "StateMonitorManager", ex.Message); }
 }