private void RebuildSensorGrid() { panelDisplay.Controls.Clear(); int index = 0; foreach (OBDParameter param in SensorMonitorForm.m_ListSensors) { SensorDisplayControl control = new SensorDisplayControl(); control.Title = param.Name; control.Size = new Size(panelDisplay.Width / 2 - 8, 65); control.Tag = param; if (radioDisplayEnglish.Checked) { control.SetDisplayMode(1); } else { control.SetDisplayMode(2); } control.Refresh(); if (index % 2 != 0) { control.Location = new Point(panelDisplay.Width / 2 + 3, (control.Height + 5) * (index / 2) + 5); } else { control.Location = new Point(5, (control.Height + 5) * (index / 2) + 5); } panelDisplay.Controls.Add((Control)control); ++index; } }
private void btnReset_Click(object sender, EventArgs e) { btnReset.Enabled = false; btnSave.Enabled = false; btnStart.Enabled = true; btnStart.Text = "S&tart"; listSensors.Enabled = true; groupDisplay.Enabled = true; SensorMonitorForm.m_arrayListLog.Clear(); lblTimeElapsed.Text = "00:00.000"; scrollTime.Enabled = false; int index = 0; if (0 >= panelDisplay.Controls.Count) { return; } do { SensorDisplayControl sensorDisplayControl = (SensorDisplayControl)panelDisplay.Controls[index]; sensorDisplayControl.EnglishDisplay = ""; sensorDisplayControl.MetricDisplay = ""; ++index; }while (index < panelDisplay.Controls.Count); }
private void UpdateThread(object state) { if (!bRunThread) { return; } do { if (m_obdInterface.getConnectedStatus() && bLogging) { IEnumerator enumerator = panelDisplay.Controls.GetEnumerator(); if (enumerator.MoveNext()) { do { SensorDisplayControl sensorDisplayControl = (SensorDisplayControl)enumerator.Current; OBDParameter obdParameter = (OBDParameter)sensorDisplayControl.Tag; OBDParameterValue obdParameterValue = m_obdInterface.getValue(obdParameter, radioDisplayEnglish.Checked); if (!obdParameterValue.ErrorDetected) { string str = obdParameter.EnglishUnitLabel; if (!radioDisplayEnglish.Checked) { str = obdParameter.MetricUnitLabel; } double num1 = obdParameterValue.DoubleValue; double num2 = obdParameterValue.DoubleValue; SensorLogItem sensorLogItem = new SensorLogItem(obdParameter.Name, num2.ToString(), str, num1.ToString(), str); SensorMonitorForm.m_arrayListLog.Add((object)sensorLogItem); scrollTime.Maximum = SensorMonitorForm.m_arrayListLog.Count - 1; scrollTime.Value = scrollTime.Maximum; DateTime dateTime = new DateTime(); dateTime = new DateTime(0L); TimeSpan timeSpan = sensorLogItem.Time.Subtract(m_dtStartTime); lblTimeElapsed.Text = dateTime.Add(timeSpan).ToString("mm:ss.fff", DateTimeFormatInfo.InvariantInfo); if (radioDisplayEnglish.Checked) { double num3 = obdParameterValue.DoubleValue; sensorDisplayControl.EnglishDisplay = num3.ToString() + " " + obdParameter.EnglishUnitLabel; } else { double num3 = obdParameterValue.DoubleValue; sensorDisplayControl.MetricDisplay = num3.ToString() + " " + obdParameter.MetricUnitLabel; } } }while (enumerator.MoveNext()); } } else { Thread.Sleep(300); } }while (bRunThread); }
private void scrollTime_Scroll(object sender, ScrollEventArgs e) { int index1 = scrollTime.Value; if (index1 < 0 || scrollTime.Value >= m_ListLog.Count) { return; } SensorLogItem log_item = m_ListLog[index1]; DateTime dateTime = new DateTime(0L); TimeSpan timeSpan = log_item.Time.Subtract(m_dtStartTime); lblTimeElapsed.Text = dateTime.Add(timeSpan).ToString("mm:ss.fff", DateTimeFormatInfo.InvariantInfo); int num = 0; if (0 >= SensorMonitorForm.m_ListSensors.Count) { return; } int index2 = index1; do { if (index2 >= 0) { SensorLogItem sensorLogItem2 = m_ListLog[index2]; int index3 = 0; if (0 < panelDisplay.Controls.Count) { do { SensorDisplayControl sensorDisplayControl = (SensorDisplayControl)panelDisplay.Controls[index3]; if (string.Compare(sensorDisplayControl.Title, sensorLogItem2.Name) == 0) { sensorDisplayControl.EnglishDisplay = sensorLogItem2.EnglishDisplay + " " + sensorLogItem2.EnglishUnits; sensorDisplayControl.MetricDisplay = sensorLogItem2.MetricDisplay + " " + sensorLogItem2.MetricUnits; } ++index3; }while (index3 < panelDisplay.Controls.Count); } } ++num; --index2; }while (num < SensorMonitorForm.m_ListSensors.Count); }
private void RebuildSensorGrid() { panelDisplay.Controls.Clear(); IEnumerator enumerator = SensorMonitorForm.m_arrayListSensors.GetEnumerator(); int num = 0; if (!enumerator.MoveNext()) { return; } do { OBDParameter obdParameter = (OBDParameter)enumerator.Current; SensorDisplayControl sensorDisplayControl = new SensorDisplayControl(); sensorDisplayControl.Title = obdParameter.Name; sensorDisplayControl.Size = new Size(panelDisplay.Width / 2 - 8, 65); sensorDisplayControl.Tag = (object)obdParameter; if (radioDisplayEnglish.Checked) { sensorDisplayControl.SetDisplayMode(1); } else { sensorDisplayControl.SetDisplayMode(2); } sensorDisplayControl.Refresh(); if (num % 2 != 0) { sensorDisplayControl.Location = new Point(panelDisplay.Width / 2 + 3, (sensorDisplayControl.Height + 5) * (num / 2) + 5); } else { sensorDisplayControl.Location = new Point(5, (sensorDisplayControl.Height + 5) * (num / 2) + 5); } panelDisplay.Controls.Add((Control)sensorDisplayControl); ++num; }while (enumerator.MoveNext()); }
private void RebuildSensorGrid() { panelDisplay.Controls.Clear(); IEnumerator enumerator = SensorMonitorForm.m_arrayListSensors.GetEnumerator(); int num = 0; if (!enumerator.MoveNext()) return; do { OBDParameter obdParameter = (OBDParameter)enumerator.Current; SensorDisplayControl sensorDisplayControl = new SensorDisplayControl(); sensorDisplayControl.Title = obdParameter.Name; sensorDisplayControl.Size = new Size(panelDisplay.Width / 2 - 8, 65); sensorDisplayControl.Tag = (object)obdParameter; if (radioDisplayEnglish.Checked) sensorDisplayControl.SetDisplayMode(1); else sensorDisplayControl.SetDisplayMode(2); sensorDisplayControl.Refresh(); if (num % 2 != 0) { sensorDisplayControl.Location = new Point(panelDisplay.Width / 2 + 3, (sensorDisplayControl.Height + 5) * (num / 2) + 5); } else { sensorDisplayControl.Location = new Point(5, (sensorDisplayControl.Height + 5) * (num / 2) + 5); } panelDisplay.Controls.Add((Control)sensorDisplayControl); ++num; } while (enumerator.MoveNext()); }
private void InitializeComponent() { this.groupSetup = new System.Windows.Forms.GroupBox(); this.labelFuelUnit = new System.Windows.Forms.Label(); this.numericFuelCost = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.radioMetricUnits = new System.Windows.Forms.RadioButton(); this.radioEnglishUnits = new System.Windows.Forms.RadioButton(); this.btnStart = new System.Windows.Forms.Button(); this.btnStop = new System.Windows.Forms.Button(); this.groupControl = new System.Windows.Forms.GroupBox(); this.sensorInstantFuelConsumption = new ProScan.SensorDisplayControl(); this.sensorAvgFuelConsumption = new ProScan.SensorDisplayControl(); this.sensorAvgFuelEconomy = new ProScan.SensorDisplayControl(); this.sensorInstantFuelEconomy = new ProScan.SensorDisplayControl(); this.sensorTotalConsumed = new ProScan.SensorDisplayControl(); this.sensorDistance = new ProScan.SensorDisplayControl(); this.sensorTotalCost = new ProScan.SensorDisplayControl(); this.sensorCostPerMile = new ProScan.SensorDisplayControl(); this.panel1 = new System.Windows.Forms.Panel(); this.groupSetup.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericFuelCost)).BeginInit(); this.groupControl.SuspendLayout(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // groupSetup // this.groupSetup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupSetup.Controls.Add(this.labelFuelUnit); this.groupSetup.Controls.Add(this.numericFuelCost); this.groupSetup.Controls.Add(this.label1); this.groupSetup.Controls.Add(this.radioMetricUnits); this.groupSetup.Controls.Add(this.radioEnglishUnits); this.groupSetup.Location = new System.Drawing.Point(8, 8); this.groupSetup.Name = "groupSetup"; this.groupSetup.Size = new System.Drawing.Size(531, 82); this.groupSetup.TabIndex = 0; this.groupSetup.TabStop = false; this.groupSetup.Text = "Setup"; // // labelFuelUnit // this.labelFuelUnit.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelFuelUnit.Location = new System.Drawing.Point(340, 48); this.labelFuelUnit.Name = "labelFuelUnit"; this.labelFuelUnit.Size = new System.Drawing.Size(48, 24); this.labelFuelUnit.TabIndex = 5; this.labelFuelUnit.Text = "/ Gallon"; this.labelFuelUnit.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // numericFuelCost // this.numericFuelCost.Anchor = System.Windows.Forms.AnchorStyles.None; this.numericFuelCost.DecimalPlaces = 2; this.numericFuelCost.Location = new System.Drawing.Point(276, 48); this.numericFuelCost.Name = "numericFuelCost"; this.numericFuelCost.Size = new System.Drawing.Size(64, 20); this.numericFuelCost.TabIndex = 4; this.numericFuelCost.Value = new decimal(new int[] { 350, 0, 0, 131072 }); // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.None; this.label1.Location = new System.Drawing.Point(276, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 24); this.label1.TabIndex = 3; this.label1.Text = "Fuel &Cost:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // radioMetricUnits // this.radioMetricUnits.Anchor = System.Windows.Forms.AnchorStyles.None; this.radioMetricUnits.Location = new System.Drawing.Point(148, 48); this.radioMetricUnits.Name = "radioMetricUnits"; this.radioMetricUnits.Size = new System.Drawing.Size(104, 24); this.radioMetricUnits.TabIndex = 2; this.radioMetricUnits.Text = "&Metric Units"; this.radioMetricUnits.CheckedChanged += new System.EventHandler(this.radioEnglishUnits_CheckedChanged); // // radioEnglishUnits // this.radioEnglishUnits.Anchor = System.Windows.Forms.AnchorStyles.None; this.radioEnglishUnits.Checked = true; this.radioEnglishUnits.Location = new System.Drawing.Point(148, 16); this.radioEnglishUnits.Name = "radioEnglishUnits"; this.radioEnglishUnits.Size = new System.Drawing.Size(104, 24); this.radioEnglishUnits.TabIndex = 1; this.radioEnglishUnits.TabStop = true; this.radioEnglishUnits.Text = "&English Units"; this.radioEnglishUnits.CheckedChanged += new System.EventHandler(this.radioEnglishUnits_CheckedChanged); // // btnStart // this.btnStart.Location = new System.Drawing.Point(48, 16); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(80, 23); this.btnStart.TabIndex = 6; this.btnStart.Text = "&Start Trip"; this.btnStart.Click += new System.EventHandler(this.btnStart_Click); // // btnStop // this.btnStop.Location = new System.Drawing.Point(48, 48); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(80, 23); this.btnStop.TabIndex = 7; this.btnStop.Text = "S&top Trip"; this.btnStop.Click += new System.EventHandler(this.btnStop_Click); // // groupControl // this.groupControl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupControl.Controls.Add(this.btnStop); this.groupControl.Controls.Add(this.btnStart); this.groupControl.Location = new System.Drawing.Point(546, 8); this.groupControl.Name = "groupControl"; this.groupControl.Size = new System.Drawing.Size(176, 82); this.groupControl.TabIndex = 8; this.groupControl.TabStop = false; this.groupControl.Text = "Control"; // // sensorInstantFuelConsumption // this.sensorInstantFuelConsumption.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorInstantFuelConsumption.EnglishDisplay = ""; this.sensorInstantFuelConsumption.Location = new System.Drawing.Point(49, 20); this.sensorInstantFuelConsumption.MetricDisplay = ""; this.sensorInstantFuelConsumption.Name = "sensorInstantFuelConsumption"; this.sensorInstantFuelConsumption.Size = new System.Drawing.Size(309, 71); this.sensorInstantFuelConsumption.TabIndex = 10; this.sensorInstantFuelConsumption.Title = "Instantaneous Fuel Consumption"; // // sensorAvgFuelConsumption // this.sensorAvgFuelConsumption.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorAvgFuelConsumption.EnglishDisplay = ""; this.sensorAvgFuelConsumption.Location = new System.Drawing.Point(49, 96); this.sensorAvgFuelConsumption.MetricDisplay = ""; this.sensorAvgFuelConsumption.Name = "sensorAvgFuelConsumption"; this.sensorAvgFuelConsumption.Size = new System.Drawing.Size(309, 71); this.sensorAvgFuelConsumption.TabIndex = 11; this.sensorAvgFuelConsumption.Title = "Average Fuel Consumption"; // // sensorAvgFuelEconomy // this.sensorAvgFuelEconomy.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorAvgFuelEconomy.EnglishDisplay = ""; this.sensorAvgFuelEconomy.Location = new System.Drawing.Point(364, 96); this.sensorAvgFuelEconomy.MetricDisplay = ""; this.sensorAvgFuelEconomy.Name = "sensorAvgFuelEconomy"; this.sensorAvgFuelEconomy.Size = new System.Drawing.Size(309, 71); this.sensorAvgFuelEconomy.TabIndex = 13; this.sensorAvgFuelEconomy.Title = "Average Fuel Economy"; // // sensorInstantFuelEconomy // this.sensorInstantFuelEconomy.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorInstantFuelEconomy.EnglishDisplay = ""; this.sensorInstantFuelEconomy.Location = new System.Drawing.Point(364, 20); this.sensorInstantFuelEconomy.MetricDisplay = ""; this.sensorInstantFuelEconomy.Name = "sensorInstantFuelEconomy"; this.sensorInstantFuelEconomy.Size = new System.Drawing.Size(309, 71); this.sensorInstantFuelEconomy.TabIndex = 12; this.sensorInstantFuelEconomy.Title = "Instantaneous Fuel Economy"; // // sensorTotalConsumed // this.sensorTotalConsumed.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorTotalConsumed.EnglishDisplay = ""; this.sensorTotalConsumed.Location = new System.Drawing.Point(49, 248); this.sensorTotalConsumed.MetricDisplay = ""; this.sensorTotalConsumed.Name = "sensorTotalConsumed"; this.sensorTotalConsumed.Size = new System.Drawing.Size(309, 71); this.sensorTotalConsumed.TabIndex = 15; this.sensorTotalConsumed.Title = "Total Fuel Consumed"; // // sensorDistance // this.sensorDistance.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorDistance.EnglishDisplay = ""; this.sensorDistance.Location = new System.Drawing.Point(49, 172); this.sensorDistance.MetricDisplay = ""; this.sensorDistance.Name = "sensorDistance"; this.sensorDistance.Size = new System.Drawing.Size(309, 71); this.sensorDistance.TabIndex = 14; this.sensorDistance.Title = "Distance Traveled"; // // sensorTotalCost // this.sensorTotalCost.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorTotalCost.EnglishDisplay = ""; this.sensorTotalCost.Location = new System.Drawing.Point(364, 248); this.sensorTotalCost.MetricDisplay = ""; this.sensorTotalCost.Name = "sensorTotalCost"; this.sensorTotalCost.Size = new System.Drawing.Size(309, 71); this.sensorTotalCost.TabIndex = 17; this.sensorTotalCost.Title = "Total Trip Cost"; // // sensorCostPerMile // this.sensorCostPerMile.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorCostPerMile.EnglishDisplay = ""; this.sensorCostPerMile.Location = new System.Drawing.Point(364, 172); this.sensorCostPerMile.MetricDisplay = ""; this.sensorCostPerMile.Name = "sensorCostPerMile"; this.sensorCostPerMile.Size = new System.Drawing.Size(309, 71); this.sensorCostPerMile.TabIndex = 16; this.sensorCostPerMile.Title = "Average Cost Per Mile"; // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.AutoScroll = true; this.panel1.BackColor = System.Drawing.Color.Black; this.panel1.Controls.Add(this.sensorInstantFuelEconomy); this.panel1.Controls.Add(this.sensorTotalConsumed); this.panel1.Controls.Add(this.sensorAvgFuelEconomy); this.panel1.Controls.Add(this.sensorAvgFuelConsumption); this.panel1.Controls.Add(this.sensorInstantFuelConsumption); this.panel1.Controls.Add(this.sensorCostPerMile); this.panel1.Controls.Add(this.sensorTotalCost); this.panel1.Controls.Add(this.sensorDistance); this.panel1.Location = new System.Drawing.Point(10, 98); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(712, 338); this.panel1.TabIndex = 18; // // FuelEconomyForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(732, 445); this.ControlBox = false; this.Controls.Add(this.groupControl); this.Controls.Add(this.groupSetup); this.Controls.Add(this.panel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FuelEconomyForm"; this.ShowInTaskbar = false; this.Text = "Fuel Economy Analysis"; this.Load += new System.EventHandler(this.FuelEconomyForm_Load); this.groupSetup.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericFuelCost)).EndInit(); this.groupControl.ResumeLayout(false); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.groupSetup = new System.Windows.Forms.GroupBox(); this.labelFuelUnit = new System.Windows.Forms.Label(); this.numericFuelCost = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.radioMetricUnits = new System.Windows.Forms.RadioButton(); this.radioEnglishUnits = new System.Windows.Forms.RadioButton(); this.btnStart = new System.Windows.Forms.Button(); this.btnStop = new System.Windows.Forms.Button(); this.groupControl = new System.Windows.Forms.GroupBox(); this.sensorInstantFuelConsumption = new ProScan.SensorDisplayControl(); this.sensorAvgFuelConsumption = new ProScan.SensorDisplayControl(); this.sensorAvgFuelEconomy = new ProScan.SensorDisplayControl(); this.sensorInstantFuelEconomy = new ProScan.SensorDisplayControl(); this.sensorTotalConsumed = new ProScan.SensorDisplayControl(); this.sensorDistance = new ProScan.SensorDisplayControl(); this.sensorTotalCost = new ProScan.SensorDisplayControl(); this.sensorCostPerMile = new ProScan.SensorDisplayControl(); this.panel1 = new System.Windows.Forms.Panel(); this.groupSetup.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericFuelCost)).BeginInit(); this.groupControl.SuspendLayout(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // groupSetup // this.groupSetup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupSetup.Controls.Add(this.labelFuelUnit); this.groupSetup.Controls.Add(this.numericFuelCost); this.groupSetup.Controls.Add(this.label1); this.groupSetup.Controls.Add(this.radioMetricUnits); this.groupSetup.Controls.Add(this.radioEnglishUnits); this.groupSetup.Location = new System.Drawing.Point(8, 8); this.groupSetup.Name = "groupSetup"; this.groupSetup.Size = new System.Drawing.Size(531, 82); this.groupSetup.TabIndex = 0; this.groupSetup.TabStop = false; this.groupSetup.Text = "Setup"; // // labelFuelUnit // this.labelFuelUnit.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelFuelUnit.Location = new System.Drawing.Point(340, 48); this.labelFuelUnit.Name = "labelFuelUnit"; this.labelFuelUnit.Size = new System.Drawing.Size(48, 24); this.labelFuelUnit.TabIndex = 5; this.labelFuelUnit.Text = "/ Gallon"; this.labelFuelUnit.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // numericFuelCost // this.numericFuelCost.Anchor = System.Windows.Forms.AnchorStyles.None; this.numericFuelCost.DecimalPlaces = 2; this.numericFuelCost.Location = new System.Drawing.Point(276, 48); this.numericFuelCost.Name = "numericFuelCost"; this.numericFuelCost.Size = new System.Drawing.Size(64, 20); this.numericFuelCost.TabIndex = 4; this.numericFuelCost.Value = new decimal(new int[] { 350, 0, 0, 131072}); // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.None; this.label1.Location = new System.Drawing.Point(276, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 24); this.label1.TabIndex = 3; this.label1.Text = "Fuel &Cost:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // radioMetricUnits // this.radioMetricUnits.Anchor = System.Windows.Forms.AnchorStyles.None; this.radioMetricUnits.Location = new System.Drawing.Point(148, 48); this.radioMetricUnits.Name = "radioMetricUnits"; this.radioMetricUnits.Size = new System.Drawing.Size(104, 24); this.radioMetricUnits.TabIndex = 2; this.radioMetricUnits.Text = "&Metric Units"; this.radioMetricUnits.CheckedChanged += new System.EventHandler(this.radioEnglishUnits_CheckedChanged); // // radioEnglishUnits // this.radioEnglishUnits.Anchor = System.Windows.Forms.AnchorStyles.None; this.radioEnglishUnits.Checked = true; this.radioEnglishUnits.Location = new System.Drawing.Point(148, 16); this.radioEnglishUnits.Name = "radioEnglishUnits"; this.radioEnglishUnits.Size = new System.Drawing.Size(104, 24); this.radioEnglishUnits.TabIndex = 1; this.radioEnglishUnits.TabStop = true; this.radioEnglishUnits.Text = "&English Units"; this.radioEnglishUnits.CheckedChanged += new System.EventHandler(this.radioEnglishUnits_CheckedChanged); // // btnStart // this.btnStart.Location = new System.Drawing.Point(48, 16); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(80, 23); this.btnStart.TabIndex = 6; this.btnStart.Text = "&Start Trip"; this.btnStart.Click += new System.EventHandler(this.btnStart_Click); // // btnStop // this.btnStop.Location = new System.Drawing.Point(48, 48); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(80, 23); this.btnStop.TabIndex = 7; this.btnStop.Text = "S&top Trip"; this.btnStop.Click += new System.EventHandler(this.btnStop_Click); // // groupControl // this.groupControl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.groupControl.Controls.Add(this.btnStop); this.groupControl.Controls.Add(this.btnStart); this.groupControl.Location = new System.Drawing.Point(546, 8); this.groupControl.Name = "groupControl"; this.groupControl.Size = new System.Drawing.Size(176, 82); this.groupControl.TabIndex = 8; this.groupControl.TabStop = false; this.groupControl.Text = "Control"; // // sensorInstantFuelConsumption // this.sensorInstantFuelConsumption.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorInstantFuelConsumption.EnglishDisplay = ""; this.sensorInstantFuelConsumption.Location = new System.Drawing.Point(49, 20); this.sensorInstantFuelConsumption.MetricDisplay = ""; this.sensorInstantFuelConsumption.Name = "sensorInstantFuelConsumption"; this.sensorInstantFuelConsumption.Size = new System.Drawing.Size(309, 71); this.sensorInstantFuelConsumption.TabIndex = 10; this.sensorInstantFuelConsumption.Title = "Instantaneous Fuel Consumption"; // // sensorAvgFuelConsumption // this.sensorAvgFuelConsumption.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorAvgFuelConsumption.EnglishDisplay = ""; this.sensorAvgFuelConsumption.Location = new System.Drawing.Point(49, 96); this.sensorAvgFuelConsumption.MetricDisplay = ""; this.sensorAvgFuelConsumption.Name = "sensorAvgFuelConsumption"; this.sensorAvgFuelConsumption.Size = new System.Drawing.Size(309, 71); this.sensorAvgFuelConsumption.TabIndex = 11; this.sensorAvgFuelConsumption.Title = "Average Fuel Consumption"; // // sensorAvgFuelEconomy // this.sensorAvgFuelEconomy.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorAvgFuelEconomy.EnglishDisplay = ""; this.sensorAvgFuelEconomy.Location = new System.Drawing.Point(364, 96); this.sensorAvgFuelEconomy.MetricDisplay = ""; this.sensorAvgFuelEconomy.Name = "sensorAvgFuelEconomy"; this.sensorAvgFuelEconomy.Size = new System.Drawing.Size(309, 71); this.sensorAvgFuelEconomy.TabIndex = 13; this.sensorAvgFuelEconomy.Title = "Average Fuel Economy"; // // sensorInstantFuelEconomy // this.sensorInstantFuelEconomy.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorInstantFuelEconomy.EnglishDisplay = ""; this.sensorInstantFuelEconomy.Location = new System.Drawing.Point(364, 20); this.sensorInstantFuelEconomy.MetricDisplay = ""; this.sensorInstantFuelEconomy.Name = "sensorInstantFuelEconomy"; this.sensorInstantFuelEconomy.Size = new System.Drawing.Size(309, 71); this.sensorInstantFuelEconomy.TabIndex = 12; this.sensorInstantFuelEconomy.Title = "Instantaneous Fuel Economy"; // // sensorTotalConsumed // this.sensorTotalConsumed.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorTotalConsumed.EnglishDisplay = ""; this.sensorTotalConsumed.Location = new System.Drawing.Point(49, 248); this.sensorTotalConsumed.MetricDisplay = ""; this.sensorTotalConsumed.Name = "sensorTotalConsumed"; this.sensorTotalConsumed.Size = new System.Drawing.Size(309, 71); this.sensorTotalConsumed.TabIndex = 15; this.sensorTotalConsumed.Title = "Total Fuel Consumed"; // // sensorDistance // this.sensorDistance.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorDistance.EnglishDisplay = ""; this.sensorDistance.Location = new System.Drawing.Point(49, 172); this.sensorDistance.MetricDisplay = ""; this.sensorDistance.Name = "sensorDistance"; this.sensorDistance.Size = new System.Drawing.Size(309, 71); this.sensorDistance.TabIndex = 14; this.sensorDistance.Title = "Distance Traveled"; // // sensorTotalCost // this.sensorTotalCost.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorTotalCost.EnglishDisplay = ""; this.sensorTotalCost.Location = new System.Drawing.Point(364, 248); this.sensorTotalCost.MetricDisplay = ""; this.sensorTotalCost.Name = "sensorTotalCost"; this.sensorTotalCost.Size = new System.Drawing.Size(309, 71); this.sensorTotalCost.TabIndex = 17; this.sensorTotalCost.Title = "Total Trip Cost"; // // sensorCostPerMile // this.sensorCostPerMile.Anchor = System.Windows.Forms.AnchorStyles.None; this.sensorCostPerMile.EnglishDisplay = ""; this.sensorCostPerMile.Location = new System.Drawing.Point(364, 172); this.sensorCostPerMile.MetricDisplay = ""; this.sensorCostPerMile.Name = "sensorCostPerMile"; this.sensorCostPerMile.Size = new System.Drawing.Size(309, 71); this.sensorCostPerMile.TabIndex = 16; this.sensorCostPerMile.Title = "Average Cost Per Mile"; // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.AutoScroll = true; this.panel1.BackColor = System.Drawing.Color.Black; this.panel1.Controls.Add(this.sensorInstantFuelEconomy); this.panel1.Controls.Add(this.sensorTotalConsumed); this.panel1.Controls.Add(this.sensorAvgFuelEconomy); this.panel1.Controls.Add(this.sensorAvgFuelConsumption); this.panel1.Controls.Add(this.sensorInstantFuelConsumption); this.panel1.Controls.Add(this.sensorCostPerMile); this.panel1.Controls.Add(this.sensorTotalCost); this.panel1.Controls.Add(this.sensorDistance); this.panel1.Location = new System.Drawing.Point(10, 98); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(712, 338); this.panel1.TabIndex = 18; // // FuelEconomyForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(732, 445); this.ControlBox = false; this.Controls.Add(this.groupControl); this.Controls.Add(this.groupSetup); this.Controls.Add(this.panel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FuelEconomyForm"; this.ShowInTaskbar = false; this.Text = "Fuel Economy Analysis"; this.Load += new System.EventHandler(this.FuelEconomyForm_Load); this.groupSetup.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericFuelCost)).EndInit(); this.groupControl.ResumeLayout(false); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }