private async void Menu_Function_Update_Click(object sender, EventArgs e)
 {
     if (LockMainView)
     {
         return;
     }
     if (await Task.Run(() => Utilities.IsUpdateAvailable()))
     {
         UpdateNotifyWindow updateWindow = new UpdateNotifyWindow();
         updateWindow.Owner = this;
         updateWindow.ShowDialog();
         if (updateWindow.IsUpdateAccepted)
         {
             Utilities.UpdateSoftware();
         }
     }
     else
     {
         PopupWindow.ShowMessage(this, Utilities.GetString("NewestVersion") as string);
     }
 }
Exemple #2
0
        private void ChangePlatform(String p)
        {
            if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
            {
                PopupWindow.ShowMessage(MainWindow.Instance, Utilities.GetString("NetworkError") as String);
                return;
            }

            StartLoadingLineAnimation();
            if (gameManager == null)
            {
                gameManager = new FeaturedGamesManager(p, this);
            }
            else
            {
                if (gameManager.IsBusy)
                {
                    hasNewRequest = true;
                }
                CancelWaitForData();
                gameManager.Platform = p;
            }
        }