public void deacreaseMaxTemp()
 {
     StationManager.DecreaseMaxTemp();
     Thread.Sleep(100);
     String[] xd = StationManager.getStation();
     this.Station = IStation.createStation(float.Parse(xd[2]), float.Parse(xd[1]), xd[0]);
 }
 public void removeStation()
 {
     StationManager.DeleteStation();
     Thread.Sleep(100);
     String[] xd = StationManager.getStation();
     this.Station = IStation.createStation(float.Parse(xd[2]), float.Parse(xd[1]), xd[0]);
 }
 public void addStation(String name)
 {
     StationManager.AddStation(name);
     Thread.Sleep(100);
     String[] xd = StationManager.getStation();
     this.Station = IStation.createStation(float.Parse(xd[2]), float.Parse(xd[1]), xd[0]);
 }
 public ModelStation()
 {
     this.StationManager = AStationManager.createAStationManager();
     string[] xd = this.StationManager.getStation();
     this.MaxHeat = this.StationManager.getMaxTemp();
     this.Station = IStation.createStation(int.Parse(xd[1]), int.Parse(xd[2]), xd[0]);
     (new Thread(() => {
         string[] b = new string[3];
         while (true)
         {
             b = StationManager.updateStation(0);
             this.Station = IStation.createStation(float.Parse(b[1]), float.Parse(b[2]), b[0]);
             this.MaxHeat = int.Parse(b[3]);
         }
     })).Start();
 }