Пример #1
0
        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);
        }
Пример #2
0
        protected override void OnLoad(EventArgs e)
        {
            eventLogMng = new EventLogMng();
            this.StartDateTimePicker.Value = DateTime.Now.Date;
            this.EndDateTimePicker.Value   = DateTime.Now.Date.AddMinutes(1439);
            startprevDate = this.StartDateTimePicker.Value;
            endprevDate   = this.EndDateTimePicker.Value;
            this.InitCtrl();

            base.OnLoad(e);
        }
Пример #3
0
        protected override void OnLoad(EventArgs e)
        {
            datamng   = DataManager.getInstance();
            socketclt = SocketClient.getInstance();
            this.socketclt.tcpDiconnectedEvt += new SocketClient.TcpClientDisConnectedEventHandle(socketclt_tcpDiconnectedEvt);
            this.BroadInit();

            this.txtEWSipAddr.Text  = Properties.Settings.Default.cnfEWSIP;
            this.txtEWSPort.Text    = Properties.Settings.Default.cnfEWSPort;
            this.txtSFipAddr.Text   = TcpProfileMng.LstNavTcpProfileData[0].IpAddr;
            this.txtPort.Text       = TcpProfileMng.LstNavTcpProfileData[0].Port.ToString();
            this.txtSpSfipAddr.Text = TcpProfileMng.LstSpTcpProfileData[0].IpAddr;
            this.txtSpSfPort.Text   = TcpProfileMng.LstSpTcpProfileData[0].Port.ToString();

            foreach (TreeNode tn in this.BroadTV.Nodes)
            {
                if (tn.Name == Properties.Settings.Default.cnfBroad.ToString())
                {
                    tn.Checked = true;
                }
            }

            eventLogMng = new EventLogMng();

            if (this.socketclt.ConState)
            {
                TcpConBtn.Enabled    = false;
                TcpDisconBtn.Enabled = true;
            }
            else
            {
                TcpConBtn.Enabled    = true;
                TcpDisconBtn.Enabled = false;
            }

            if (this.AdminCB.Checked == true)
            {
                this.BroadTV.Enabled = true;
            }
            else
            {
                this.BroadTV.Enabled = false;
            }

            base.OnLoad(e);
        }
Пример #4
0
 /// <summary>
 /// 기본생성자
 /// </summary>
 public LogManager()
 {
     dataMng     = DataManager.getInstance();
     eventLogMng = new EventLogMng();
 }
Пример #5
0
 /// <summary>
 /// 윈도우 이벤트로그에 Error 이벤트를 기록한다.
 /// </summary>
 /// <param name="_msg"></param>
 private void SetEventLogError(string _msg)
 {
     EventLogMng.WriteLog("EDWS DB Manager", EventLogEntryType.Error, _msg);
 }
Пример #6
0
 /// <summary>
 /// 윈도우 이벤트로그에 Information 이벤트를 기록한다.
 /// </summary>
 /// <param name="_msg"></param>
 private void SetEventLogInfo(string _msg)
 {
     EventLogMng.WriteLog("EDWS DB Manager", EventLogEntryType.Information, _msg);
 }