Learn To Drive/.vs/Learn To Drive/v16/.suo
Learn To Drive/Learn To Drive.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31729.503
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Learn To Drive", "Learn To Drive\Learn To Drive.csproj", "{DBB7AE7A-7FAC-4E25-8572-F3C4ABDDD7A5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DBB7AE7A-7FAC-4E25-8572-F3C4ABDDD7A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBB7AE7A-7FAC-4E25-8572-F3C4ABDDD7A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBB7AE7A-7FAC-4E25-8572-F3C4ABDDD7A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBB7AE7A-7FAC-4E25-8572-F3C4ABDDD7A5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0EB4D813-53A0-46A1-93AA-23EE8F2643EB}
EndGlobalSection
EndGlobal
Learn To Drive/Learn To Drive/App.config
Learn To Drive/Learn To Drive/bin/Debug/Learn To Drive.exe
Learn To Drive/Learn To Drive/bin/Debug/Learn To Drive.exe.config
Learn To Drive/Learn To Drive/bin/Debug/Learn To Drive.pdb
Learn To Drive/Learn To Drive/Learn To Drive.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Media;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Learn_To_Drive
{
public partial class LearnCar : Form
{
string appName = "Learn to Drive";
bool seatBeltOn = false;
bool isCarStart = false;
bool wipersOn = false;
int speedMPH = 0;
bool isRadioPlaying = false;
int radioStation = 0;
SoundPlayer player = new SoundPlayer();
string projectDirectory = Directory.GetParent(Environment.CurrentDirectory).Parent.FullName;
public LearnCar()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
//Utility.FitFormToScreen(this, 786, 1920);
//this.CenterToScreen();
KEYBOX.AllowDrop = true;
ignitionBox.AllowDrop = true;
BTN_SeatBelt.BackColor = Color.Red;
BTN_Wiper.BackColor = Color.Red;
PopulateGearbox();
LBL_lowFuel.Text = "";
}
void PopulateGearbox()
{
COMBO_GearShifter.Items.Add("Park");
COMBO_GearShifter.Items.Add("NEUTRAL");
COMBO_GearShifter.Items.Add("DRIVE");
COMBO_GearShifter.Items.Add("REVERSE");
COMBO_GearShifter.SelectedItem = null;
COMBO_GearShifter.SelectedText = "Park";
COMBO_Stereo.Items.Add("Choose Stereo");
COMBO_Stereo.Items.Add("Radio Station 1");
COMBO_Stereo.Items.Add("Radio Station 2");
COMBO_Stereo.Items.Add("MP3");
COMBO_Stereo.Items.Add("CD");
COMBO_Stereo.SelectedItem = null;
COMBO_Stereo.SelectedText = "Choose Stereo";
}
private void BTN_SeatBelt_Click(object sender, EventArgs e)
{
BTN_SeatBelt.BackColor = seatBeltOn ? Color.Red : Color.Green;
seatBeltOn = !seatBeltOn;
}
private void KEYBOX_MouseDown(object sender, MouseEventArgs e)
{
KEYBOX.AllowDrop = true;
DoDragDrop("Entered", DragDropEffects.All);
}
private void IgnitionBox_DragOver(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.All;
}
private void IgnitionBox_DragDrop(object sender, DragEventArgs e)
{
if (!seatBeltOn)
{
MessageBox.Show("Seat belt is not on! Please on the seat belt first", appName, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
Btn_startCar.Enabled = true;
}
}
private void IgnitionBox_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.Text))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}
private void StartBtn_Click(object sender, EventArgs e)
{
isCarStart = true;
Btn_startCar.Text = "Started";
}
private void BTN_Wiper_Click(object sender, EventArgs e)
{
if (wipersOn)
{
BTN_Wiper.BackColor = Color.Red;
}
else
{
BTN_Wiper.BackColor = Color.Green;
}
wipersOn = !wipersOn;
}
private void BTN_Horn_Click(object sender, EventArgs e)
{
if (player == null)
player = new SoundPlayer();
string filePath = projectDirectory + "\\Resources\\Horn.wav";
var stream = new MemoryStream(File.ReadAllBytes(filePath));
player.Stream = stream;
player.Play();
if (isRadioPlaying)
{
PlayRadio(radioStation);
}
}
private void COMBO_Stereo_SelectedValueChanged(object sender, EventArgs e)
{
int index = COMBO_Stereo.SelectedIndex;
if (index == 1)
{
PlayRadio(1);
isRadioPlaying = true;
radioStation = 1;
}
else if (index == 2)
{
PlayRadio(1);
isRadioPlaying = true;
radioStation = 2;
}
else
{
isRadioPlaying = false;
player.Stop();
player.Dispose();
}
}
void PlayRadio(int station)
{
string filePath = string.Empty;
player = player == null ? new SoundPlayer() : player;
switch (station)
{
case 1:
filePath = projectDirectory + "\\Resources\\Radio1.wav";
break;
case 2:
filePath = projectDirectory + "\\Resources\\Radio2.wav";
break;
}
if (!string.IsNullOrEmpty(filePath))
{
var stream = new MemoryStream(File.ReadAllBytes(filePath));
player.Stream = stream;
player.Play();
}
}
private void TIMER_clock_Tick(object sender, EventArgs e)
{
LBL_Clock.Text = DateTime.Now.ToString("h:mm:ss tt");
}
bool isLeftIndicatorOn = false;
bool isRighttIndicatorOn = false;
private void BOX_leftIndicator_Click(object sender, EventArgs e)
{
TIMER_Indicator.Enabled = true;
TIMER_Indicator.Start();
isLeftIndicatorOn = true;
BOX_rightIndicator.Image = Properties.Resources.RightTurn;
isRighttIndicatorOn = false;
}
private void BOX_rightIndicator_Click(object sender, EventArgs e)
{
TIMER_Indicator.Enabled = true;
TIMER_Indicator.Start();
isRighttIndicatorOn = true;
BOX_leftIndicator.Image = Properties.Resources.LeftTurn;
isLeftIndicatorOn = false;
}
bool isBlinking = false;
private void TIMER_Indicator_Tick(object sender, EventArgs e)
{
if (isLeftIndicatorOn)
{
BOX_leftIndicator.Image = isBlinking ? Properties.Resources.LeftTurn_fill : Properties.Resources.LeftTurn;
}
if (isRighttIndicatorOn)
{
BOX_rightIndicator.Image = isBlinking ? Properties.Resources.RightTurn_fill : Properties.Resources.RightTurn;
}
isBlinking = !isBlinking;
}
bool isLightOn = false;
private void BTN_lights_Click(object sender, EventArgs e)
{
BTN_lights.BackColor = isLightOn ? Color.Gray : Color.Yellow;
if (isLightOn)
{
RADIO_light.Checked = false;
RADIO_fogLight.Checked = false;
}
isLightOn = !isLightOn;
}
private void RADIO_fogLight_Click(object sender, EventArgs e)
{
if (isLightOn)
BTN_lights.BackColor = Color.AntiqueWhite;
else
{
MessageBox.Show("Turn on light first !", appName, MessageBoxButtons.OK, MessageBoxIcon.Information);
RADIO_fogLight.Checked = false;
}
}
private void RADIO_light_Click(object sender, EventArgs e)
{
if (isLightOn)
BTN_lights.BackColor = Color.White;
else
{
MessageBox.Show("Turn on light first !", appName, MessageBoxButtons.OK, MessageBoxIcon.Information);
RADIO_light.Checked = false;
}
}
private void BOX_stopCar_Click(object sender, EventArgs e)
{
isCarStart = false;
Application.Exit();
}
private void COMBO_GearShifter_SelectedValueChanged(object sender, EventArgs e)
{
BTN_gas.Enabled = false;
int index = COMBO_GearShifter.SelectedIndex;
string textValue = COMBO_GearShifter.SelectedItem.ToString();
if (!isCarStart || speedMPH != 0)
{
MessageBox.Show("Gear can't change because car is running ! Please stop the car before changing the gear", appName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
COMBO_Stereo.SelectedItem = null;
COMBO_Stereo.SelectedText = textValue;
}
else
{
if (index == 2)
{
BTN_gas.Enabled = true;
TIMER_carForward.Enabled = true;
TIMER_carForward.Start();
TIMER_carReverse.Stop();
}
else if (index == 3)
{
BTN_gas.Enabled = true;
TIMER_carReverse.Enabled = true;
TIMER_carReverse.Start();
TIMER_carForward.Stop();
}
else
{
}
}
}
int mileRecord = 0;
private void TIMER_carForward_Tick(object sender, EventArgs e)
{
if (PROGRESS_fuel.Value == 0)
{
LBL_lowFuel.Text="Fuel is low !!! ";
speedMPH = 0;
UpdateSpeedMeter();
UpdateSpeedImage();
}
if (speedMPH > 55)
{
LBL_Mph.ForeColor = Color.Red;
LBL_Kph.ForeColor = Color.Red;
LBL_speedMesssage.Text = "You are running on high speed now";
}
else
{
LBL_Mph.ForeColor = Color.Black;
LBL_Kph.ForeColor = Color.Black;
LBL_speedMesssage.Text = "";
}
BOX_car.Left += (speedMPH / 4);
int postion = BOX_car.Location.X;
UpdateSpeedMeter();
UpdateSpeedImage();
if (postion > 980)
{
mileRecord++;
LBL_Speedometer.Text = mileRecord.ToString().PadLeft(7, '0');
BOX_car.Location = new Point(5, BOX_car.Location.Y);
PROGRESS_fuel.Value--;
}
}
void UpdateSpeedMeter()
{
LBL_Mph.Text = speedMPH.ToString();
LBL_Kph.Text = speedMPH == 0 ? "00.00" : Convert.ToDecimal(speedMPH * 1.609).ToString("#.##");
}
void UpdateSpeedImage()
{
switch (speedMPH)
{
case var expression when speedMPH <= 0 && speedMPH < 9:
PIC_speedMeter.Image = Properties.Resources._001;
break;
case var expression when speedMPH > 9 && speedMPH < 19:
PIC_speedMeter.Image = Properties.Resources._10;
break;
case var expression when speedMPH > 19 && speedMPH < 29:
PIC_speedMeter.Image = Properties.Resources._20;
break;
case var expression when speedMPH > 29 && speedMPH < 39:
PIC_speedMeter.Image = Properties.Resources._30;
break;
case var expression when speedMPH > 39 && speedMPH < 49:
PIC_speedMeter.Image = Properties.Resources._40;
break;
case var expression when speedMPH > 49 && speedMPH < 59:
PIC_speedMeter.Image = Properties.Resources._50;
break;
case var expression when speedMPH > 59 && speedMPH < 69:
PIC_speedMeter.Image = Properties.Resources._60;
break;
case var expression when speedMPH > 69 && speedMPH < 79:
PIC_speedMeter.Image = Properties.Resources._70;
break;
case var expression when speedMPH > 79 && speedMPH < 89:
PIC_speedMeter.Image = Properties.Resources._80;
break;
case var expression when speedMPH > 89 && speedMPH < 99:
PIC_speedMeter.Image = Properties.Resources._90;
break;
case var expression when speedMPH > 99 && speedMPH < 109:
PIC_speedMeter.Image = Properties.Resources._100;
break;
case var expression when speedMPH > 109:
PIC_speedMeter.Image = Properties.Resources._110;
break;
}
}
private void TIMER_carReverse_Tick(object sender, EventArgs e)
{
if (PROGRESS_fuel.Value == 0)
{
LBL_lowFuel.Text = "Fuel is low !!! ";
speedMPH = 0;
UpdateSpeedMeter();
UpdateSpeedImage();
}
if (speedMPH > 55)
{
LBL_Mph.ForeColor = Color.Red;
LBL_Kph.ForeColor = Color.Red;
LBL_speedMesssage.Text = "You are running on high speed now";
}
else
{
LBL_Mph.ForeColor = Color.Black;
LBL_Kph.ForeColor = Color.Black;
LBL_speedMesssage.Text = "";
}
BOX_car.Left -= (speedMPH / 4);
int postion = BOX_car.Location.X;
UpdateSpeedMeter();
UpdateSpeedImage();
if (postion < 5)
{
BOX_car.Location = new Point(980, BOX_car.Location.Y);
PROGRESS_fuel.Value--;
}
}
private void BTN_gas_Click(object sender, EventArgs e)
{
speedMPH += 5;
if (speedMPH > 110)
{
speedMPH = 110;
}
}
private void BTN_brake_Click(object sender, EventArgs e)
{
if (speedMPH == 0)
{
MessageBox.Show("Car is already stopped !", appName, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
speedMPH -= 10;
if (speedMPH < 0)
{
speedMPH = 0;
}
}
}
private void BOX_fuelPump_Click(object sender, EventArgs e)
{
PROGRESS_fuel.Value = 100;
LBL_lowFuel.Text = "";
MessageBox.Show("Your fuel tank is full now ! Enjoy the ride .", appName, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void BOX_leftIndicator_DoubleClick(object sender, EventArgs e)
{
TIMER_Indicator.Enabled = false;
TIMER_Indicator.Stop();
isLeftIndicatorOn = true;
BOX_leftIndicator.Image = Properties.Resources.LeftTurn;
}
private void BOX_rightIndicator_DoubleClick(object sender, EventArgs e)
{
TIMER_Indicator.Enabled = false;
TIMER_Indicator.Stop();
isRighttIndicatorOn = false;
BOX_rightIndicator.Image = Properties.Resources.RightTurn;
}
}
}
Learn To Drive/Learn To Drive/Learn To Drive.csproj
Debug
AnyCPU
{DBB7AE7A-7FAC-4E25-8572-F3C4ABDDD7A5}
WinExe
Learn_To_Drive
Learn To Drive
v4.5
512
true
AnyCPU
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
4
AnyCPU
pdbonly
true
bin\Release\
TRACE
prompt
4
Form
Learn To Drive.cs
Component
Learn To Drive.cs
ResXFileCodeGenerator
Resources.Designer.cs
Designer
True
Resources.resx
True
SettingsSingleFileGenerator
Settings.Designer.cs
True
Settings.settings
True
Learn To Drive/Learn To Drive/Learn To Drive.Designer.cs
namespace Learn_To_Drive
{
partial class LearnCar
{
///
/// Required designer variable.
/// private System.ComponentModel.IContainer components = null;
///
/// Clean up any resources being used.
/// ///
true if managed resources should be disposed; otherwise, false.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LearnCar));
this.BTN_SeatBelt = new System.Windows.Forms.Button();
this.seatBeltLbl = new System.Windows.Forms.Label();
this.BTN_brake = new System.Windows.Forms.Button();
this.BTN_gas = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.LBL_Mph = new System.Windows.Forms.Label();
this.LBL_Kph = new System.Windows.Forms.Label();
this.LBL_Speedometer = new System.Windows.Forms.Label();
this.LBL_Gear = new System.Windows.Forms.Label();
this.COMBO_GearShifter = new System.Windows.Forms.ComboBox();
this.BTN_Wiper = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.COMBO_Stereo = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.LBL_Clock = new System.Windows.Forms.Label();
this.TIMER_clock = new System.Windows.Forms.Timer(this.components);
this.TIMER_Indicator = new System.Windows.Forms.Timer(this.components);
this.BTN_lights = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.RADIO_fogLight = new System.Windows.Forms.RadioButton();
this.RADIO_light = new System.Windows.Forms.RadioButton();
this.TIMER_carForward = new System.Windows.Forms.Timer(this.components);
this.TIMER_carReverse = new System.Windows.Forms.Timer(this.components);
this.LBL_drag = new System.Windows.Forms.Label();
this.PROGRESS_fuel = new System.Windows.Forms.ProgressBar();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.LBL_speedMesssage = new System.Windows.Forms.Label();
this.Btn_startCar = new Learn_To_Drive.RoundButton();
this.BOX_fuelPump = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.BTN_Horn = new System.Windows.Forms.Button();
this.BOX_rightIndicator = new System.Windows.Forms.PictureBox();
this.BOX_leftIndicator = new System.Windows.Forms.PictureBox();
this.BOX_stopCar = new System.Windows.Forms.PictureBox();
this.BOX_car = new System.Windows.Forms.PictureBox();
this.ignitionBox = new System.Windows.Forms.PictureBox();
this.KEYBOX = new System.Windows.Forms.PictureBox();
this.PIC_speedMeter = new System.Windows.Forms.PictureBox();
this.LBL_lowFuel = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.BOX_fuelPump)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.BOX_rightIndicator)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.BOX_leftIndicator)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.BOX_stopCar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.BOX_car)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ignitionBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.KEYBOX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PIC_speedMeter)).BeginInit();
this.SuspendLayout();
//
// BTN_SeatBelt
//
this.BTN_SeatBelt.BackColor = System.Drawing.Color.Red;
this.BTN_SeatBelt.Location = new System.Drawing.Point(382, 19);
this.BTN_SeatBelt.Margin = new System.Windows.Forms.Padding(2);
this.BTN_SeatBelt.Name = "BTN_SeatBelt";
this.BTN_SeatBelt.Size = new System.Drawing.Size(87, 51);
this.BTN_SeatBelt.TabIndex = 0;
this.BTN_SeatBelt.UseVisualStyleBackColor = false;
this.BTN_SeatBelt.Click += new System.EventHandler(this.BTN_SeatBelt_Click);
//
// seatBeltLbl
//
this.seatBeltLbl.AutoSize = true;
this.seatBeltLbl.Location = new System.Drawing.Point(393, 73);
this.seatBeltLbl.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.seatBeltLbl.Name = "seatBeltLbl";
this.seatBeltLbl.Size = new System.Drawing.Size(67, 13);
this.seatBeltLbl.TabIndex = 1;
this.seatBeltLbl.Text = "Seat Belt On";
//
// BTN_brake
//
this.BTN_brake.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BTN_brake.ForeColor = System.Drawing.Color.Black;
this.BTN_brake.Location = new System.Drawing.Point(652, 509);
this.BTN_brake.Margin = new System.Windows.Forms.Padding(2);
this.BTN_brake.Name = "BTN_brake";
this.BTN_brake.Size = new System.Drawing.Size(74, 41);
this.BTN_brake.TabIndex = 10;
this.BTN_brake.Text = "Brake";
this.BTN_brake.UseVisualStyleBackColor = true;
this.BTN_brake.Click += new System.EventHandler(this.BTN_brake_Click);
//
// BTN_gas
//
this.BTN_gas.Enabled = false;
this.BTN_gas.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BTN_gas.Location = new System.Drawing.Point(807, 509);
this.BTN_gas.Margin = new System.Windows.Forms.Padding(2);
this.BTN_gas.Name = "BTN_gas";
this.BTN_gas.Size = new System.Drawing.Size(76, 41);
this.BTN_gas.TabIndex = 11;
this.BTN_gas.Text = "Gas";
this.BTN_gas.UseVisualStyleBackColor = true;
this.BTN_gas.Click += new System.EventHandler(this.BTN_gas_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Location = new System.Drawing.Point(745, 305);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(38, 13);
this.label1.TabIndex = 14;
this.label1.Text = "Speed";
//
// LBL_Mph
//
this.LBL_Mph.BackColor = System.Drawing.Color.White;
this.LBL_Mph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.LBL_Mph.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.LBL_Mph.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBL_Mph.Location = new System.Drawing.Point(711, 318);
this.LBL_Mph.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.LBL_Mph.Name = "LBL_Mph";
this.LBL_Mph.Size = new System.Drawing.Size(106, 49);
this.LBL_Mph.TabIndex = 15;
this.LBL_Mph.Text = "0";
//
// LBL_Kph
//
this.LBL_Kph.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.LBL_Kph.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBL_Kph.Location = new System.Drawing.Point(711, 366);
this.LBL_Kph.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.LBL_Kph.Name = "LBL_Kph";
this.LBL_Kph.Size = new System.Drawing.Size(106, 39);
this.LBL_Kph.TabIndex = 16;
this.LBL_Kph.Text = "00.00";
//
// LBL_Speedometer
//
this.LBL_Speedometer.BackColor = System.Drawing.Color.White;
this.LBL_Speedometer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.LBL_Speedometer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBL_Speedometer.Location = new System.Drawing.Point(711, 404);
this.LBL_Speedometer.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.LBL_Speedometer.Name = "LBL_Speedometer";
this.LBL_Speedometer.Size = new System.Drawing.Size(106, 27);
this.LBL_Speedometer.TabIndex = 17;
this.LBL_Speedometer.Text = "0000000";
//
// LBL_Gear
//
this.LBL_Gear.AutoSize = true;
this.LBL_Gear.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBL_Gear.Location = new System.Drawing.Point(648, 463);
this.LBL_Gear.Name = "LBL_Gear";
this.LBL_Gear.Size = new System.Drawing.Size(108, 20);
this.LBL_Gear.TabIndex = 18;
this.LBL_Gear.Text = "Gear Shifter";
//
// COMBO_GearShifter
//
this.COMBO_GearShifter.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.COMBO_GearShifter.FormattingEnabled = true;
this.COMBO_GearShifter.Location = new System.Drawing.Point(762, 462);
this.COMBO_GearShifter.Name = "COMBO_GearShifter";
this.COMBO_GearShifter.Size = new System.Drawing.Size(121, 24);
this.COMBO_GearShifter.TabIndex = 19;
this.COMBO_GearShifter.SelectedValueChanged += new System.EventHandler(this.COMBO_GearShifter_SelectedValueChanged);
//
// BTN_Wiper
//
this.BTN_Wiper.Location = new System.Drawing.Point(1078, 12);
this.BTN_Wiper.Name = "BTN_Wiper";
this.BTN_Wiper.Size = new System.Drawing.Size(120, 34);
this.BTN_Wiper.TabIndex = 20;
this.BTN_Wiper.UseVisualStyleBackColor = true;
this.BTN_Wiper.Click += new System.EventHandler(this.BTN_Wiper_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(1120, 47);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(40, 13);
this.label2.TabIndex = 21;
this.label2.Text = "Wipers";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(1125, 129);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(30, 13);
this.label3.TabIndex = 23;
this.label3.Text = "Horn";
//
// COMBO_Stereo
//
this.COMBO_Stereo.FormattingEnabled = true;
this.COMBO_Stereo.Location = new System.Drawing.Point(1078, 174);
this.COMBO_Stereo.Name = "COMBO_Stereo";
this.COMBO_Stereo.Size = new System.Drawing.Size(121, 21);
this.COMBO_Stereo.TabIndex = 25;
this.COMBO_Stereo.SelectedValueChanged += new System.EventHandler(this.COMBO_Stereo_SelectedValueChanged);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(1100, 201);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(75, 13);
this.label4.TabIndex = 24;
this.label4.Text = "Sound System";
//
// LBL_Clock
//
this.LBL_Clock.AutoSize = true;
this.LBL_Clock.Location = new System.Drawing.Point(735, 201);
this.LBL_Clock.Name = "LBL_Clock";
this.LBL_Clock.Size = new System.Drawing.Size(30, 13);
this.LBL_Clock.TabIndex = 26;
this.LBL_Clock.Text = "Time";
//
// TIMER_clock
//
this.TIMER_clock.Enabled = true;
this.TIMER_clock.Tick += new System.EventHandler(this.TIMER_clock_Tick);
//
// TIMER_Indicator
//
this.TIMER_Indicator.Interval = 500;
this.TIMER_Indicator.Tick += new System.EventHandler(this.TIMER_Indicator_Tick);
//
// BTN_lights
//
this.BTN_lights.Location = new System.Drawing.Point(1078, 249);
this.BTN_lights.Name = "BTN_lights";
this.BTN_lights.Size = new System.Drawing.Size(121, 39);
this.BTN_lights.TabIndex = 27;
this.BTN_lights.UseVisualStyleBackColor = true;
this.BTN_lights.Click += new System.EventHandler(this.BTN_lights_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(1078, 235);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(35, 13);
this.label5.TabIndex = 28;
this.label5.Text = "Lights";
//
// RADIO_fogLight
//
this.RADIO_fogLight.AutoSize = true;
this.RADIO_fogLight.Location = new System.Drawing.Point(1081, 296);
this.RADIO_fogLight.Name = "RADIO_fogLight";
this.RADIO_fogLight.Size = new System.Drawing.Size(67, 17);
this.RADIO_fogLight.TabIndex = 29;
this.RADIO_fogLight.TabStop = true;
this.RADIO_fogLight.Text = "Foglights";
this.RADIO_fogLight.UseVisualStyleBackColor = true;
this.RADIO_fogLight.Click += new System.EventHandler(this.RADIO_fogLight_Click);
//
// RADIO_light
//
this.RADIO_light.AutoSize = true;
this.RADIO_light.Location = new System.Drawing.Point(1081, 319);
this.RADIO_light.Name = "RADIO_light";
this.RADIO_light.Size = new System.Drawing.Size(52, 17);
this.RADIO_light.TabIndex = 30;
this.RADIO_light.TabStop = true;
this.RADIO_light.Text = "Bright";
this.RADIO_light.UseVisualStyleBackColor = true;
this.RADIO_light.Click += new System.EventHandler(this.RADIO_light_Click);
//
// TIMER_carForward
//
this.TIMER_carForward.Interval = 50;
this.TIMER_carForward.Tick += new System.EventHandler(this.TIMER_carForward_Tick);
//
// TIMER_carReverse
//
this.TIMER_carReverse.Interval = 20;
this.TIMER_carReverse.Tick += new System.EventHandler(this.TIMER_carReverse_Tick);
//
// LBL_drag
//
this.LBL_drag.Location = new System.Drawing.Point(416, 177);
this.LBL_drag.Name = "LBL_drag";
this.LBL_drag.Size = new System.Drawing.Size(14, 57);
this.LBL_drag.TabIndex = 31;
this.LBL_drag.Text = "DRAG";
//
// PROGRESS_fuel
//
this.PROGRESS_fuel.Location = new System.Drawing.Point(1078, 371);
this.PROGRESS_fuel.Name = "PROGRESS_fuel";
this.PROGRESS_fuel.Size = new System.Drawing.Size(121, 23);
this.PROGRESS_fuel.TabIndex = 32;
this.PROGRESS_fuel.Value = 100;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(1078, 401);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(14, 13);
this.label6.TabIndex = 33;
this.label6.Text = "E";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(1185, 401);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(13, 13);
this.label7.TabIndex = 34;
this.label7.Text = "F";
//
// LBL_speedMesssage
//
this.LBL_speedMesssage.AutoSize = true;
this.LBL_speedMesssage.ForeColor = System.Drawing.Color.Red;
this.LBL_speedMesssage.Location = new System.Drawing.Point(670, 275);
this.LBL_speedMesssage.Name = "LBL_speedMesssage";
this.LBL_speedMesssage.Size = new System.Drawing.Size(0, 13);
this.LBL_speedMesssage.TabIndex = 37;
//
// Btn_startCar
//
this.Btn_startCar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.Btn_startCar.Enabled = false;
this.Btn_startCar.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F,...