コード例 #1
0
ファイル: CommForm.cs プロジェクト: testdoron/ProScan
 public CommForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obdInterface = obd2;
     m_listVehicles = m_obdInterface.GetVehicleProfiles();
     PopulateProfileCombobox();
 }
コード例 #2
0
ファイル: CommForm.cs プロジェクト: testdoron/ProScan
 public CommForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obdInterface = obd2;
     m_listVehicles = m_obdInterface.GetVehicleProfiles();
     PopulateProfileCombobox();
 }
コード例 #3
0
ファイル: CommForm.cs プロジェクト: gheyret/ProScan-1
        public CommForm(OBDInterface obd)
        {
            InitializeComponent();

            m_OBDInterface = obd;
            m_profiles     = m_OBDInterface.VehicleProfiles;
            PopulateProfileCombobox();
        }
コード例 #4
0
 public TrackForm(OBDInterface obd)
 {
     thisForm         = this;
     m_obdInterface   = obd;
     timeslip         = new Timeslip();
     timeslip.Vehicle = m_obdInterface.ActiveProfile.Name;
     InitializeComponent();
     CheckConnection();
 }
コード例 #5
0
ファイル: TrackForm.cs プロジェクト: testdoron/ProScan
 public TrackForm(OBDInterface obd2)
 {
     TrackForm.thisForm = this;
     m_obdInterface = obd2;
     timeslip = new Timeslip();
     timeslip.Vehicle = m_obdInterface.GetActiveProfile().Name;
     InitializeComponent();
     CheckConnection();
 }
コード例 #6
0
ファイル: TerminalForm.cs プロジェクト: gheyret/ProScan-1
        public TerminalForm(OBDInterface obd)
        {
            m_obdInterface = obd;
            InitializeComponent();

            m_strID = m_obdInterface.getDeviceIDString();
            Update();
            richText.SelectionFont  = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular);
            richText.SelectionColor = Color.Black;
            addPrompt();
        }
コード例 #7
0
ファイル: TerminalForm.cs プロジェクト: testdoron/ProScan
 public TerminalForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
     m_strID = m_obdInterface.getDeviceIDString();
     Update();
     richText.SelectionFont = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular);
     richText.SelectionColor = Color.Black;
     if (string.Compare(m_strID, "") == 0)
         richText.AppendText("ELM > ");
     else
         richText.AppendText(m_strID + " > ");
 }
コード例 #8
0
ファイル: FuelEconomyForm.cs プロジェクト: testdoron/ProScan
 public FuelEconomyForm(OBDInterface obd2)
 {
     m_FuelEconomyForm = this;
     InitializeComponent();
     m_obdInterface = obd2;
     bRunThread = true;
     m_isWorking = false;
     sensorInstantFuelConsumption.SetDisplayMode(1);
     sensorAvgFuelConsumption.SetDisplayMode(1);
     sensorAvgFuelEconomy.SetDisplayMode(1);
     sensorInstantFuelEconomy.SetDisplayMode(1);
     sensorTotalConsumed.SetDisplayMode(1);
     sensorDistance.SetDisplayMode(1);
     sensorTotalCost.SetDisplayMode(1);
     sensorCostPerMile.SetDisplayMode(1);
 }
コード例 #9
0
ファイル: FuelEconomyForm.cs プロジェクト: testdoron/ProScan
 public FuelEconomyForm(OBDInterface obd2)
 {
     m_FuelEconomyForm = this;
     InitializeComponent();
     m_obdInterface = obd2;
     bRunThread     = true;
     m_isWorking    = false;
     sensorInstantFuelConsumption.SetDisplayMode(1);
     sensorAvgFuelConsumption.SetDisplayMode(1);
     sensorAvgFuelEconomy.SetDisplayMode(1);
     sensorInstantFuelEconomy.SetDisplayMode(1);
     sensorTotalConsumed.SetDisplayMode(1);
     sensorDistance.SetDisplayMode(1);
     sensorTotalCost.SetDisplayMode(1);
     sensorCostPerMile.SetDisplayMode(1);
 }
コード例 #10
0
        public DynoForm(OBDInterface obd)
        {
            m_obdInterface = obd;
            m_profile      = obd.ActiveProfile;

            InitializeComponent();

            m_Capture        = false;
            m_dtDynoTime     = DateTime.Now;
            btnStart.Enabled = false;
            btnReset.Enabled = false;
            printDocument.DefaultPageSettings           = new PageSettings();
            printDocument.DefaultPageSettings.Margins   = new Margins(100, 100, 100, 100);
            printDocument.DefaultPageSettings.Landscape = true;
            pageSetupDialog.Document = printDocument;
        }
コード例 #11
0
 public TerminalForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
     m_strID = m_obdInterface.getDeviceIDString();
     Update();
     richText.SelectionFont  = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular);
     richText.SelectionColor = Color.Black;
     if (string.Compare(m_strID, "") == 0)
     {
         richText.AppendText("ELM > ");
     }
     else
     {
         richText.AppendText(m_strID + " > ");
     }
 }
コード例 #12
0
ファイル: DynoForm.cs プロジェクト: testdoron/ProScan
        public DynoForm(OBDInterface obd2)
        {
            m_obdInterface = obd2;
            m_profile = obd2.GetActiveProfile();

            InitializeComponent();

            Data = new DataList();
            m_bCapture = false;
            m_dtDynoTime = DateTime.Now;
            btnStart.Enabled = false;
            btnReset.Enabled = false;
            printDocument1.DefaultPageSettings = new PageSettings()
            {
                Margins = new Margins(100, 100, 100, 100),
                Landscape = true
            };
            pageSetupDialog1.Document = printDocument1;
        }
コード例 #13
0
        public DynoForm(OBDInterface obd2)
        {
            m_obdInterface = obd2;
            m_profile      = obd2.GetActiveProfile();

            InitializeComponent();

            Data             = new DataList();
            m_bCapture       = false;
            m_dtDynoTime     = DateTime.Now;
            btnStart.Enabled = false;
            btnReset.Enabled = false;
            printDocument1.DefaultPageSettings = new PageSettings()
            {
                Margins   = new Margins(100, 100, 100, 100),
                Landscape = true
            };
            pageSetupDialog1.Document = printDocument1;
        }
コード例 #14
0
 public SensorMonitorForm(OBDInterface obd2)
 {
     try
     {
         InitializeComponent();
         m_obdInterface   = obd2;
         IsLogging        = false;
         btnStart.Enabled = false;
         btnReset.Enabled = false;
         btnSave.Enabled  = false;
         IsRunThread      = true;
         m_ListSensors    = new List <OBDParameter>();
         m_ListLog        = new List <SensorLogItem>();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
コード例 #15
0
 public SensorMonitorForm(OBDInterface obd2)
 {
     try
     {
         InitializeComponent();
         m_obdInterface   = obd2;
         bLogging         = false;
         btnStart.Enabled = false;
         btnReset.Enabled = false;
         btnSave.Enabled  = false;
         bRunThread       = true;
         SensorMonitorForm.m_arrayListSensors  = new ArrayList();
         SensorMonitorForm.m_arrayListRequests = new ArrayList();
         SensorMonitorForm.m_arrayListLog      = new ArrayList();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
コード例 #16
0
 public SensorMonitorForm(OBDInterface obd2)
 {
     try
     {
         InitializeComponent();
         m_obdInterface = obd2;
         bLogging = false;
         btnStart.Enabled = false;
         btnReset.Enabled = false;
         btnSave.Enabled = false;
         bRunThread = true;
         SensorMonitorForm.m_arrayListSensors = new ArrayList();
         SensorMonitorForm.m_arrayListRequests = new ArrayList();
         SensorMonitorForm.m_arrayListLog = new ArrayList();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
コード例 #17
0
ファイル: VehicleForm.cs プロジェクト: testdoron/ProScan
 public VehicleForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obdInterface     = obd2;
     m_arrayVehicleList = m_obdInterface.GetVehicleProfiles();
 }
コード例 #18
0
ファイル: FreezeFramesForm.cs プロジェクト: testdoron/ProScan
 public FreezeFramesForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obdInterface = obd2;
 }
コード例 #19
0
ファイル: MainForm.cs プロジェクト: testdoron/ProScan
        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);
        }
コード例 #20
0
 public OxygenSensorsForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
 }
コード例 #21
0
ファイル: TestForm.cs プロジェクト: testdoron/ProScan
 public TestForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obd2Interface = obd2;
 }
コード例 #22
0
ファイル: DTCForm.cs プロジェクト: testdoron/ProScan
 public DTCForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
     CheckConnection();
 }
コード例 #23
0
ファイル: TestForm.cs プロジェクト: testdoron/ProScan
 public TestForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obd2Interface = obd2;
 }
コード例 #24
0
ファイル: ScopeForm.cs プロジェクト: testdoron/ProScan
 public ScopeForm(OBDInterface obd2)
 {
     MyScopeForm = this;
     m_obdInterface = obd2;
     InitializeComponent();
 }
コード例 #25
0
 public ReportGeneratorForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
 }
コード例 #26
0
 public FreezeFramesForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obdInterface = obd2;
 }
コード例 #27
0
 public OxygenSensorsForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
 }
コード例 #28
0
ファイル: VehicleForm.cs プロジェクト: testdoron/ProScan
 public VehicleForm(OBDInterface obd2)
 {
     InitializeComponent();
     m_obdInterface = obd2;
     m_arrayVehicleList = m_obdInterface.GetVehicleProfiles();
 }
コード例 #29
0
 public DTCForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
     CheckConnection();
 }
コード例 #30
0
 public VehicleForm(OBDInterface obd)
 {
     InitializeComponent();
     m_obdInterface = obd;
     m_VehicleList  = m_obdInterface.VehicleProfiles;
 }