Пример #1
0
        public static void Load()
        {
            if (!File.Exists(FilePath))
                throw new FileNotFoundException();

            Default = JsonConvert.DeserializeObject<ItemSetsFile>(File.ReadAllText(FilePath));
        }
Пример #2
0
        private async void Form1_Load(object sender, EventArgs e)
        {
            var itemset = await new MobafireProvider().GetItemSet("http://www.mobafire.com/league-of-legends/build/ashes-to-ashes-67331");

            ItemSetsFile.Load();

            ItemSetsFile.Default.Sets.Add(itemset);

            ItemSetsFile.Save();
        }