public MainForm() { InitializeComponent(); m_obdInterface = new OBDInterface(); m_obdInterface.OnConnect += new OBDInterface.__Delegate_OnConnect(On_OBD2_Connect); m_obdInterface.OnDisconnect += new OBDInterface.__Delegate_OnDisconnect(On_OBD2_Disconnect); if (m_obdInterface.GetActiveProfile() != null) panelVehicle.Text = m_obdInterface.GetActiveProfile().ToString(); if (m_obdInterface.GetCommSettings() != null) { if (m_obdInterface.GetCommSettings().AutoDetect) panelComPort.Text = "Auto-Detect"; else panelComPort.Text = "COM" + m_obdInterface.GetCommSettings().ComPort.ToString(); } SetDescriptiveToolTips(); m_formStart = new CommForm(m_obdInterface); m_formMonitorTests = new TestForm(m_obdInterface); m_formDTC = new DTCForm(m_obdInterface); m_formFreezeFrames = new FreezeFramesForm(m_obdInterface); m_formOxygenSensors = new OxygenSensorsForm(m_obdInterface); m_formSensorGrid = new SensorMonitorForm(m_obdInterface); m_formSensorChart = new ScopeForm(m_obdInterface); m_formTrack = new TrackForm(m_obdInterface); m_formDyno = new DynoForm(m_obdInterface); m_formFuelEconomy = new FuelEconomyForm(m_obdInterface); m_formTerminal = new TerminalForm(m_obdInterface); m_formReport = new ReportGeneratorForm(m_obdInterface); m_formCommLog = new CommLogForm(); toolBarButtonStart.Pushed = true; SetActiveForm(m_formStart); }
public ScopeForm(OBDInterface obd2) { MyScopeForm = this; m_obdInterface = obd2; InitializeComponent(); }