コード例 #1
0
        public void APTMAIN()
        {
            DBConnection();

            Log.WriteInfo($"{PGM_ID} : 통신 시작");

            //수신용 인스턴스 생성
            m_ThreadATLTask = new ThreadATLTask(conn, _logging, timer_READ);
            //m_ThreadATLTask.ReadData += ReadDataDisplay;

            //각 컨트롤에 값을 셋팅
            //Assembly assembly = Assembly.GetExecutingAssembly();
            //this.lblVersion.Text = "Version: " + File.GetLastWriteTime(assembly.Location).ToString("yyyy.MM.dd");

            //this.Label1.Text = $"{PGM_ID} 수신";
            //this.Text = PGM_ID;
            //lblIP.Text = hostIP;
            //lblPort.Text = hostPort.ToString();
            //this.lblSts.BackColor = Color.Red;

            //timer 컨트롤 설정
            this.timSocket_Connect.Interval = timer_CONNECT;
            this.timSocket_Check.Interval   = timer_CHECK;
            this.timSocket_Ka.Interval      = timer_KA;

            //쓰레드 시작
            m_ThreadATLTask.ThreadStart();

            Connect_NG_Timer(); //접속시도
        }
コード例 #2
0
        private void MAIN()
        {
            //DB접속
            DBConnection();

            Log.WriteInfo($"{taskID.Text} : 통신 시작");

            //수신용 인스턴스 생성
            m_ThreadATLTask           = new ThreadATLTask(conn, _logging, timer_READ);
            m_ThreadATLTask.ReadData += ReadDataDisplay;

            //각 컨트롤에 값을 셋팅


            //timer 컨트롤 설정
            this.timSocket_Connect.Interval = timer_CONNECT;
            this.timSocket_Check.Interval   = timer_CHECK;
            this.timSocket_Ka.Interval      = timer_KA;

            //쓰레드 시작
            m_ThreadATLTask.ThreadStart();

            Connect_NG_Timer(); //접속시도
        }