public PersistentData() { Options = new Options(); CurrentBuild = new PoEBuild { Url = "http://www.pathofexile.com/passive-skill-tree/AAAAAgMA", Level = "1" }; Builds = new List<PoEBuild>(); }
public PersistentData() { Options = new Options(); CurrentBuild = new PoEBuild { Url = SkillTree.TreeAddress + SkillTree.GetCharacterURL(3), Level = "1" }; Builds = new List<PoEBuild>(); }
public void LoadPersistentDataFromFile() { string filePath = AppData.GetFolder(true) + "PersistentData.xml"; if (File.Exists(filePath)) { var reader = new StreamReader(filePath); var ser = new XmlSerializer(typeof (PersistentData)); var obj = (PersistentData)ser.Deserialize(reader); Options = obj.Options; Builds = obj.Builds; CurrentBuild = obj.CurrentBuild; reader.Close(); OnPropertyChanged(null); } }
public BuildValidator(Options options) { _options = options; }