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); }
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--; }