/// <summary> /// 機台註冊 /// </summary> /// <param name="isCreateNewMachine">是否創建新機台</param> public RegisterMachineID(bool isRegisterNewMachine) { InitializeComponent(); this._isRegisterNewMachine = isRegisterNewMachine; this._stateMonitorManager = new StateMonitorManager(); this._dialogResult = DialogResult.Abort; base.AutoCloseFormEvent += new AutoCloseFormDelegate(RegisterMachineID_AutoCloseFormEvent); base.AutoCloseAlertEvent += new AutoCloseAlertDelegate(RegisterMachineID_AutoCloseAlertEvent); this.currentMachineID = string.Empty; }
/// <summary> /// 帶參數構造函數(必須傳入抽像類AbstractStateMonitorManager的實例) /// </summary> /// <param name="stateMonitorManager"></param> public StateMonitor(AbstractStateMonitorManager objStateMonitorManager) { InitializeComponent(); this.InitializeMainFrameControl(); try { this.m_objStateMonitorManager = objStateMonitorManager; //注冊事件 m_objStateMonitorManager.InitializeEvent += new EventHandler(m_objStateMonitorManager_InitializeEvent); } catch { } }
public MachineFrame() { InitializeComponent(); this._stateMonitorManager = new StateMonitorManager(); this._dataObjectRealTimeBackupManager = new DataObjectRealTimeBackupManager(); this._msmqServiceMessage = "MSMQ啟動中,請稍等!"; this._localInformationConfigData = null; this._machineFrameBase = null; this._initializeTimer = new System.Timers.Timer(); this._isInitializing = false; this._initializeTimer.Enabled = false; this._initializeTimer.Interval = 5000; this._initializeTimer.Elapsed += new System.Timers.ElapsedEventHandler(InitializeTimer_Elapsed); }