Пример #1
0
 private void save_trip_btn_Click(object sender, EventArgs e)
 {
     if (this.CompareDateAndHour() && this.locomotive_combobox.Enabled == false)
     {
         this.SetupTime();
         this.init_station_id        = Convert.ToInt32(init_station_combo_box.SelectedValue);
         this.destination_station_id = Convert.ToInt32(destination_station_combo_box.SelectedValue);
         travel_controller.SaveTravel(this.init_time, this.arrival_time, this.init_station_id, this.destination_station_id);
         _layout_form.changeLayout(new AddTravelSectionForm(_layout_form));
     }
     else
     {
         this.Error("Asegurate de asignar las fechas correctas");
     }
 }
Пример #2
0
 private void btn_viajes_en_transito_Click(object sender, EventArgs e)
 {
     highLightButton(btn_viajes_en_transito);
     _layoutForm.changeLayout(new InTransitTravelForm());
 }