Exemple #1
0
 /// <summary>
 ///     Contructs the maintenance with the given values
 /// </summary>
 public Maintenance(Medewerker medewerker, DateTime date, Tram tram, MaintenanceType type)
 {
     Medewerker = medewerker;
     Date = date;
     Tram = tram;
     Type = type;
 }
Exemple #2
0
 /// <summary>
 ///     Constructs the class with the given parameters
 /// </summary>
 public Schoonmaak(Medewerker medewerker, DateTime date, Tram tram, SchoonmaakType type)
 {
     Medewerker = medewerker;
     Date = date;
     Tram = tram;
     Type = type;
 }
Exemple #3
0
        /// <summary>
        ///     On launch we get pick a tram from the list which is the one being ridden by the driver.
        /// </summary>
        public DriversForm()
        {
            InitializeComponent();

            List<Tram> tramList = Database.GetAllTrams().ToList();
            int id = Database.GetRandomTramIdNotRemise(tramList.Count);
            _tram = tramList.First(t => t.Id == id);
            tbTramNummer.Text = _tram.Nummer.ToString();
            lbTramNummer.Text = _tram.Nummer.ToString();
        }