コード例 #1
0
 public TemperatureManager(DoorManager DoorM, Engine en, MainWindow mw)
 {
     mainWindow = mw;
     engine = en;
     temperature = 7.2;
     Dm = DoorM;
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: M138A/Wine-Cooler
 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();
 }