Пример #1
0
 public Accident(int AccID, int amount, DateTime timeof, Device device)
 {
     this.AccidentID = AccID;
     this.TimeOfAccident = timeof;
     this.Amount = amount;
     this.dev = device;
 }
 public void RegisterAccident(int deviceNR, int amount, DateTime timeOfAccident, int Drinks, DateTime TimeSleep, DateTime TimeToilet, int ToiletVisit)
 {
     dev = new Device(deviceNR);
     dev.RegisterAccident(amount, timeOfAccident, Drinks, TimeSleep, TimeToilet, ToiletVisit);
 }
Пример #3
0
 public Accident(DateTime timeof, int amount, Device device)
 {
     this.TimeOfAccident = timeof;
     this.Amount = amount;
     this.dev = device;
 }