// Load the Main form private void frmMain_Load(object sender, EventArgs e) { //device.EnableLogging(Application.StartupPath); manageControls(programMode.notconnected); AddToLog("T5 CAN Flasher version: " + Application.ProductVersion); t5can = new T5CAN(); t5can.onWriteProgress += new T5CAN.WriteProgress(t5can_onWriteProgress); t5can.onCanInfo += new T5CAN.CanInfo(t5can_onCanInfo); t5can.onBytesTransmitted += new T5CAN.BytesTransmitted(t5can_onBytesTransmitted); //device.DisableLogging(); }
// Load the Main form private void frmMain_Load(object sender, EventArgs e) { //device.EnableLogging(Application.StartupPath); manageControls(programMode.notconnected); AddToLog("T5 CAN Flasher version: " + Application.ProductVersion.ToString()); t5can = new T5CAN(); t5can.onWriteProgress += new T5CAN.WriteProgress(t5can_onWriteProgress); t5can.onCanInfo += new T5CAN.CanInfo(t5can_onCanInfo); t5can.onBytesTransmitted += new T5CAN.BytesTransmitted(t5can_onBytesTransmitted); Application.DoEvents(); // Wait for the Main form to load (before trying to connect to an ECU) Application.Idle += new EventHandler(frmMain_Loaded); //device.DisableLogging(); }