public TemperatureManager(DoorManager DoorM, Engine en, MainWindow mw) { mainWindow = mw; engine = en; temperature = 7.2; Dm = DoorM; }
public MainWindow() { InitializeComponent(); doorLabel.Content = "Door is closed"; engine = new Engine(); Dm = new DoorManager(); Tm = new TemperatureManager(Dm, engine, this); main = this; currentTemperature.Content = "Current temperature : " + Tm.temperature.ToString(); }