Example #1
0
        private void ViewControllerController()
        {
            // Phin would be proud. This will be replaced when I have more time.
            // That never means anything though. This will be around for a while.

            while (true)
            {
                if (MissingMods.Count() == 0 && _missingModsLocked == false)
                {
                    _viewController.IncrementCurrentViewIndex();

                    return;
                }

                Thread.Sleep(10);
            }
        }
Example #2
0
        private void ValidateModsController()
        {
            // Phin would be proud. This will be replaced when I have more time.
            // That never means anything though. This will be around for a while.

            var lastAutodownloadsStatus = AutodownloadsEnabled;

            while (true)
            {
                if (MissingMods.Count() == 0 && _missingModsLocked == false)
                {
                    _viewController.IncrementCurrentViewIndex();

                    return;
                }

                if (AutodownloadsEnabled && !lastAutodownloadsStatus)
                {
                    lastAutodownloadsStatus = AutodownloadsEnabled;

                    if (_apiBase.IsUserLoggedIn() && _apiBase.IsUserPremium())
                    {
                        InitializeAutoDownloader();
                    }

                    else
                    {
                        _dialogController.OpenLogDialog("You must be a Nexus Premium member to use the auto-downloading feature of Automaton.");
                        AutodownloadsEnabled = false;
                    }
                }

                if (!AutodownloadsEnabled && lastAutodownloadsStatus)
                {
                    lastAutodownloadsStatus = AutodownloadsEnabled;
                    _downloadClient.PurgeQueue();
                }

                Thread.Sleep(100);
            }
        }