Example #1
0
 public TrackForm(OBDInterface obd2)
 {
     TrackForm.thisForm = this;
     m_obdInterface = obd2;
     timeslip = new Timeslip();
     timeslip.Vehicle = m_obdInterface.GetActiveProfile().Name;
     InitializeComponent();
     CheckConnection();
 }
Example #2
0
 public TrackForm(OBDInterface obd)
 {
     thisForm         = this;
     m_obdInterface   = obd;
     timeslip         = new Timeslip();
     timeslip.Vehicle = m_obdInterface.ActiveProfile.Name;
     InitializeComponent();
     CheckConnection();
 }
Example #3
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     m_bCapture       = false;
     btnStage.Enabled = true;
     TrackForm.StopTimer();
     timeslip         = new Timeslip();
     timeslip.Vehicle = m_obdInterface.ActiveProfile.Name;
     UpdateTimeslip();
 }
Example #4
0
        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);
        }