private void menuiTekCAN_Click(object sender, EventArgs e) { if (DriverManager.CANDriverFactory(ExistedDeviceType.iTekAnalyst)) { lbDeviceStatus.Text = "设备状态-iTek已连接"; logMessage("成功初始化iTek(CANPRO)设备!"); frmRX.Show(); } else { lbDeviceStatus.Text = "设备状态-无设备连接"; logMessage("初始化iTek(CANPRO)设备失败!"); } }
private void menuSomebusCAN_Click(object sender, EventArgs e) { if (DriverManager.CANDriverFactory(ExistedDeviceType.Somebus)) { lbDeviceStatus.Text = "设备状态-Somebus已连接"; logMessage("成功初始化Somebus设备!"); frmRX.Show(); } else { lbDeviceStatus.Text = "设备状态-无设备连接"; errorReport("初始化Somebus设备失败!"); } }
private void menuVehicleSpy_Click(object sender, EventArgs e) { //VehicleSpy if (DriverManager.CANDriverFactory(ExistedDeviceType.Intrepidcs)) { lbDeviceStatus.Text = "设备状态-VSPY已连接"; logMessage("成功初始化Vehicle Spy"); frmRX.Show(); } else { lbDeviceStatus.Text = "设备状态-无设备连接"; errorReport("初始化Vehicle Spy失败"); } }