public MainForm() { InitializeComponent(); this._systemMessageText = new DefineConstantValue.SystemMessage(string.Empty); this._isLogin = false; this._tmrDisplayTime = new Timer(); this._tmrDisplayTime.Interval = 1000; this._tmrDisplayTime.Tick += new EventHandler(_tmrDisplayTime_Tick); this._tmrDisplayTime.Enabled = true; this._tmrRefreshStatus = new Timer(); this._tmrRefreshStatus.Interval = 500; this._tmrRefreshStatus.Tick += new EventHandler(_tmrRefreshStatus_Tick); this._tmrRefreshStatus.Enabled = false; OnStatusBarChanged += new StatusBarRefresh(MainForm_OnStatusBarChanged); this.BaseDockPanel = this.dpnlContainer; this._win = new LoginForm(); Cursor.Current = Cursors.WaitCursor; //this.Text = this._systemMessageText.strSystemText; Cursor.Current = Cursors.Arrow; this._strNoticeFormName = "WindowUI.HBManagerTerminal.Notice.frmNoticeShow"; }
public MainForm() { InitializeComponent(); this._systemMessageText = new DefineConstantValue.SystemMessage(string.Empty); this._isLogin = false; this._tmrDisplayTime = new Timer(); this._tmrDisplayTime.Interval = 1000; this._tmrDisplayTime.Tick += new EventHandler(_tmrDisplayTime_Tick); this._tmrDisplayTime.Enabled = true; this._IBlacklistChangeRecordBL = BLL.Factory.HHZX.MasterBLLFactory.GetBLL<IBlacklistChangeRecordBL>(BLL.Factory.HHZX.MasterBLLFactory.BlacklistChangeRecord); this._IConsumeMachineBL = BLL.Factory.HHZX.MasterBLLFactory.GetBLL<IConsumeMachineBL>(BLL.Factory.HHZX.MasterBLLFactory.ConsumeMachine); OnStatusBarChanged += new StatusBarRefresh(MainForm_OnStatusBarChanged); this.BaseDockPanel = this.dpnlContainer; this._LoginForm = new LoginForm(); Cursor.Current = Cursors.WaitCursor; Cursor.Current = Cursors.Arrow; }