GUI/UnitManager.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 299 072989c22a87
     1.1 --- a/GUI/UnitManager.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/GUI/UnitManager.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -52,7 +52,7 @@
     1.4  
     1.5      public UnitManager(PersistentSettings settings) {
     1.6        this.settings = settings;
     1.7 -      this.temperatureUnit = (TemperatureUnit)settings.Get("TemperatureUnit",
     1.8 +      this.temperatureUnit = (TemperatureUnit)settings.GetValue("TemperatureUnit",
     1.9          (int)TemperatureUnit.Celcius);
    1.10      }
    1.11  
    1.12 @@ -60,7 +60,7 @@
    1.13        get { return temperatureUnit; }
    1.14        set {
    1.15          this.temperatureUnit = value;
    1.16 -        this.settings.Set("TemperatureUnit", (int)temperatureUnit);
    1.17 +        this.settings.SetValue("TemperatureUnit", (int)temperatureUnit);
    1.18        }
    1.19      }
    1.20    }