コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            Instance = this;

            List <UIElement> addonControls = new List <UIElement>();

            AppInitializer.InitializeApp();

            AutoUpdater.Start("https://raw.githubusercontent.com/Ilmefy/WoWLauncherData/master/AutoUpdater.xml");
            //Addon addon = new Addon();
            //addon.Description = "Opis";
            //addon.Name = "Nazwa";
            //addon.Expansion = References.Expansions.BattleForAzeroth;
            //addon.DownloadUrl = "https:";
            //Source.Collection.AddonCollection ac = new Source.Collection.AddonCollection();
            //List<Addon> addons = new List<Addon>();
            //addons.Add(addon);
            //ac.Addons = addons;
            //System.IO.File.WriteAllText(@"C:\Users\Kirialaa\Desktop\addonyproba.json", Newtonsoft.Json.JsonConvert.SerializeObject(ac));


            //for(int i=0;i<25;i++)
            //{
            //    Addon a = new Addon
            //    {
            //        Name = "nazwa",
            //        DownloadUrl = "https://github.com/Ilmefy/IllPlayer/blob/master/AddOns.zip?raw=true",
            //        ImageUrl= "http://i.imgur.com/S3cEFua.jpg",
            //        Description = "opis",
            //        Expansion = References.Expansions.WrathOfTheLichKing
            //    };
            //    addonControls.Add(a.CreateAddonControl());
            //}

            //  UIManager.AddControlToAddonList(addonControls);
        }