} //ReadSettings public void SaveSettings() { WindowsLib.RegistryHelper reg = new WindowsLib.RegistryHelper(); reg.SetValue(reg.HKeyLocalMachine, this.RegistryPath, "ZIP Code", this.DefaultLocation); reg.SetValue(reg.HKeyLocalMachine, this.RegistryPath, "Override Weather Condition", this.OverrideWeatherCondition); } //SaveSettings
public string OverrideWeatherCondition = ""; //mostly_sunny, partly_cloudy, mostly_cloudy, mostly_cloudy, cloudy public void ReadSettings() { WindowsLib.RegistryHelper reg = new WindowsLib.RegistryHelper(); this.DefaultLocation = (string)reg.GetValue(reg.HKeyLocalMachine, this.RegistryPath, "ZIP Code", "10001"); this.OverrideWeatherCondition = (string)reg.GetValue(reg.HKeyLocalMachine, this.RegistryPath, "Override Weather Condition", ""); } //ReadSettings