コード例 #1
0
        private void FW_Upd_Load(object sender, EventArgs e)
        {
            ATX2ATCOM = new SerCOM();

            // Create Event Handlers
            ATX2ATCOM.ProcessLog += new SerCOM.NotifyLog(ProcessLog);
            //ATX2ATCOM.ProcessData += new SerCOM.NotifyBytes(ProcessRAWData);
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: x86fr/ATX2AT-Smart-Converter
        private void Main_Load(object sender, EventArgs e)
        {
            ProcessCOM = new SerCOM();

            // Create Event Handlers
            ProcessCOM.ProcessLog  += new SerCOM.NotifyLog(ProcessLog);
            ProcessCOM.ProcessData += new SerCOM.NotifyBytes(ProcessRAWData);

            // Try to connect at startup
            ProcessCOM.ConnectToDevice();

            // Init Prev_DIPSwitch to -1 (because 0 is a valid value)
            A2A.Prev_DIPSwitch--;
        }