Ejemplo n.º 1
0
 public TemperatureManager(DoorManager DoorM, Engine en, MainWindow mw)
 {
     mainWindow = mw;
     engine = en;
     temperature = 7.2;
     Dm = DoorM;
 }
Ejemplo n.º 2
0
 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();
 }