Exemplo n.º 1
0
 private void displayJourney()  // set the vehicle data into the text field
 {
     DistanceTravelledTxt.Text = J.getdistanceTravelled().ToString();
     JourneyDayTxt.Text        = J.getjourneyAt().Day.ToString();
     JourneyMonthTxt.Text      = J.getjourneyAt().Month.ToString();
     JourneyYearTxt.Text       = J.getjourneyAt().Year.ToString();
     PaidRadioBtn.IsChecked    = J.isPaid();
 }
Exemplo n.º 2
0
 private Boolean Checked;        //Radio button status
 public EditJourneyWindow(Journey J)
 {
     InitializeComponent();
     this.J       = J;
     saveState    = false;       //when window constructed has not been saved yet
     validJourney = true;        //TODO code for this
     Checked      = J.isPaid();
     displayJourney();
 }