private void randomizeButton_Click(object sender, EventArgs e)
 {
     RH_BIKE_GUI b;
     if (writeToFileCheckbox.Checked)
         b = new RH_BIKE_GUI(new STUB_Bike(), writeLocationTextbox.Text);
     else
         b = new RH_BIKE_GUI(new STUB_Bike());
     b.Show();
     this.Hide();
 }
 private void comButton_Click(object sender, EventArgs e)
 {
     RH_BIKE_GUI b;
     if (writeToFileCheckbox.Checked)
         b = new RH_BIKE_GUI(new COM_Bike(comPortTextbox.Text), writeLocationTextbox.Text);
     else
         b = new RH_BIKE_GUI(new COM_Bike(comPortTextbox.Text));
     b.Show();
     this.Hide();
 }
 private void TXTBikeButton_Click(object sender, EventArgs e)
 {
     RH_BIKE_GUI b;
     if(writeToFileCheckbox.Checked)
         b = new RH_BIKE_GUI(new TXT_Bike(readFromTextbox.Text), writeLocationTextbox.Text);
     else
         b = new RH_BIKE_GUI(new TXT_Bike(readFromTextbox.Text));
     b.Show();
     this.Hide();
     
 }