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); }
public Accident(DateTime timeof, int amount, Device device) { this.TimeOfAccident = timeof; this.Amount = amount; this.dev = device; }