protected override void OnLoad(EventArgs e) { this.controlset = new ControlSet(); this.datamanager = DataManager.getInstance(); this.serialMng = SerialMng.getInstance(); this.InitCtrl(); this.tmpwmsgList = new List <WMessage>(); this.wmsglistclone = new List <WMessage>(); this.recvmng = RecvMng.getInstance(); this.tempWmsg = new WMessage(); this.orderlistset = new OrderListSet(); this.secession = new Secession(); this.eventLogMng = new EventLogMng(); this.logMng = new LogManager(); this.serialMng.onSerialRecv += new SerialMng.DelegateSerialRecv(serialMng_onSerialRecv); this.datamanager.OnDSUseWMessageList += new DataManager.DelegateDSUseWMessageList(datamanager_OnDSUseWMessageList); this.datamanager.onWMessageUpdate += new DataManager.DelegateWMessageUpdate(datamanager_onWMessageUpdate); //이벤트 방식으로 변경 this.datamanager.onWMessageFinished += new DataManager.DelegateWMessageFinished(datamanager_onWMessageFinished); //이벤트 방식으로 변경 this.recvmng.MsgSuccessEvent += new RecvMng.MsgSuccessEventHandle(recvmng_MsgSuccessEvent); this.recvmng.MsgSpcSuccessEvent += new RecvMng.MsgSpcSuccessEventHandle(recvmng_MsgSpcSuccessEvent); this.recvmng.SpcFinishedEvent += new RecvMng.SpcFinishedEventHandle(recvmng_SpcFinishedEvent); this.recvmng.NorFinishedEvent += new RecvMng.NorFinishedEventHandle(recvmng_NorFinishedEvent); this.recvmng.SpcMuxRcEvent += new RecvMng.SpcMuxRcEventHandle(recvmng_SpcMuxRcEvent); this.recvmng.NorMuxRcEvent += new RecvMng.NorMuxRcEventHandle(recvmng_NorMuxRcEvent); string tmpBroad = this.datamanager.getBroadName((uint)Properties.Settings.Default.cnfBroad); base.OnLoad(e); }
protected override void OnLoad(EventArgs e) { controlset = new ControlSet(); orderlistset = new OrderListSet(); this.InitCtrl(); this.StartDateTimePicker.Value = DateTime.Now.Date; this.EndDateTimePicker.Value = DateTime.Now.Date.AddMinutes(1439); startprevDate = this.StartDateTimePicker.Value; endprevDate = this.EndDateTimePicker.Value; base.OnLoad(e); }