예제 #1
0
        public void UpdateFormWithData(bool updateVersionDropDown = true)
        {
            LogWriter writer = LogWriter.Instance;

            writer.WriteToLog("Execute UpdateItemControl()");
            SplashForm.ChangeText("Loading Items, please wait...");
            itemsTab.UpdateItemControl();

            writer = LogWriter.Instance;
            writer.WriteToLog("Execute UpdateChampionControl()");
            SplashForm.ChangeText("Loading Champions, please wait...");
            championsTab.UpdateChampionControl();

            writer = LogWriter.Instance;
            writer.WriteToLog("Execute UpdateRuneControl()");
            SplashForm.ChangeText("Loading Runes, please wait...");
            runesTab.UpdateRuneControl();

            writer = LogWriter.Instance;
            writer.WriteToLog("Execute UpdateRuneControl()");
            SplashForm.ChangeText("Loading Masteries, please wait...");
            masteriesTab.UpdateMasteryControl();

            if (updateVersionDropDown)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute UpdateMainTopBar()");
                SplashForm.ChangeText("Loading, please wait...");
                mainTopBar.UpdateMainTopBarVersions();
            }
        }
예제 #2
0
        public bool DataCollection(string version)
        {
            bool success = true;

            if (success)
            {
                LogWriter writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectItemData(version)");
                SplashForm.ChangeText("Downloading Items, please wait...");
                success = itemsTab.CollectItemData(version);
            }
            if (success)
            {
                LogWriter writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectChampionData(version)");
                SplashForm.ChangeText("Downloading Champions, please wait...");
                success = championsTab.CollectChampionData(version);
            }
            if (success)
            {
                LogWriter writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectRuneData(version)");
                SplashForm.ChangeText("Downloading Runes, please wait...");
                success = runesTab.CollectRuneData(version);
            }
            if (success)
            {
                LogWriter writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectMasteryData(version)");
                SplashForm.ChangeText("Downloading Masteries, please wait...");
                success = masteriesTab.CollectMasteryData(version);
            }
            return(success);
        }
예제 #3
0
        private bool LoadRiotDataFromFile()
        {
            bool      success = true;
            LogWriter writer  = LogWriter.Instance;

            writer.WriteToLog("Execute LoadRiotVersionData()");

            //Always try to check what the latest versions are online
            success = getAllVersionAvailable.CollectVersionData();
            if (!success)
            {
                success = getAllVersionAvailable.LoadRiotVersionData();
            }

            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotItemData()");
                SplashForm.ChangeText("Preping Items, please wait...");
                success = itemsTab.getItemsFromServer.LoadRiotItemData(getAllVersionAvailable.realm.V);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotChampionData()");
                SplashForm.ChangeText("Preping Champions, please wait...");
                success = championsTab.getChampionsFromServer.LoadRiotChampionData(getAllVersionAvailable.realm.V);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotRuneData()");
                SplashForm.ChangeText("Preping Runes, please wait...");
                success = runesTab.getRunesFromServer.LoadRiotRuneData(getAllVersionAvailable.realm.V);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotMasteryData()");
                SplashForm.ChangeText("Preping Runes, please wait...");
                success = masteriesTab.getMasteriesFromServer.LoadRiotMasteryData(getAllVersionAvailable.realm.V);
            }
            return(success);
        }
예제 #4
0
        private bool InitializeDataCollection()
        {
            LogWriter writer = LogWriter.Instance;

            writer.WriteToLog("Execute CollectVersionData()");
            SplashForm.ChangeText("Downloading Versions, please wait...");
            bool success = getAllVersionAvailable.CollectVersionData();

            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectItemData()");
                SplashForm.ChangeText("Downloading Items, please wait...");
                success = itemsTab.CollectItemData(getAllVersionAvailable.realm.V);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectChampionData()");
                SplashForm.ChangeText("Downloading Champions, please wait...");
                success = championsTab.CollectChampionData(getAllVersionAvailable.realm.V);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectRuneData()");
                SplashForm.ChangeText("Downloading Runes, please wait...");
                success = runesTab.CollectRuneData(getAllVersionAvailable.realm.V);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute CollectMasteryData()");
                SplashForm.ChangeText("Downloading Masteries, please wait...");
                success = masteriesTab.CollectMasteryData(getAllVersionAvailable.realm.V);
            }
            return(success);
        }
예제 #5
0
        public bool LoadRiotDataFromFile(string version)
        {
            bool      success = true;
            LogWriter writer  = LogWriter.Instance;

            writer.WriteToLog("Execute LoadRiotVersionData()");

            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotItemData()");
                SplashForm.ChangeText("Preping Items, please wait...");
                success = itemsTab.getItemsFromServer.LoadRiotItemData(version);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotChampionData()");
                SplashForm.ChangeText("Preping Champions, please wait...");
                success = championsTab.getChampionsFromServer.LoadRiotChampionData(version);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotRuneData()");
                SplashForm.ChangeText("Preping Runes, please wait...");
                success = runesTab.getRunesFromServer.LoadRiotRuneData(version);
            }
            if (success)
            {
                writer = LogWriter.Instance;
                writer.WriteToLog("Execute LoadRiotMasteryData()");
                SplashForm.ChangeText("Preping Masteries, please wait...");
                success = masteriesTab.getMasteriesFromServer.LoadRiotMasteryData(version);
            }
            return(success);
        }