public PersistentData()
 {
     Options = new Options();
     CurrentBuild = new PoEBuild
     {
         Url = "http://www.pathofexile.com/passive-skill-tree/AAAAAgMA",
         Level = "1"
     };
     Builds = new List<PoEBuild>();
 }
Пример #2
0
        public PersistentData()
        {

            Options = new Options();
            CurrentBuild = new PoEBuild
            {
                Url = SkillTree.TreeAddress + SkillTree.GetCharacterURL(3),
                Level = "1"
            };
            Builds = new List<PoEBuild>();
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
 public BuildValidator(Options options)
 {
     _options = options;
 }