private void ShowNonUniqueWindow()
    {
        var messageBoxDialog = new MessageBox(Lib.Static.Resources.TitleCreateModNonUniqueId.Get(), Lib.Static.Resources.MessageCreateModNonUniqueId.Get());

        messageBoxDialog.Owner = this;
        messageBoxDialog.ShowDialog();
    }
Esempio n. 2
0
 private async void Load()
 {
     try
     {
         await _setupApplicationTask;
         ChangeToMainPage();
         DisplayFirstLaunchWarningIfNeeded();
     }
     catch (Exception ex)
     {
         var messageBox = new MessageBox(_xamlFailedToLaunchTitle.Get(), _xamlFailedToLaunchMessage.Get() + $" {ex.Message}\n{ex.StackTrace}");
         messageBox.ShowDialog();
     }
 }
Esempio n. 3
0
 private async void AfterLoading(object sender, RoutedEventArgs e)
 {
     // Start preparing everything on Splash Screen!
     if (!_loaded)
     {
         _loaded = true;
         try
         {
             await Task.Run(async() =>
             {
                 await Setup.SetupApplicationAsync(UpdateText, _xamlSplashMinimumTime.Get());
                 ChangeToMainPage();
                 DisplayFirstLaunchWarningIfNeeded();
             });
         }
         catch (Exception ex)
         {
             var messageBox = new MessageBox(_xamlFailedToLaunchTitle.Get(), _xamlFailedToLaunchMessage.Get() + $" {ex.Message}\n{ex.StackTrace}");
             messageBox.ShowDialog();
         }
     }
 }
    private async void Load()
    {
        try
        {
            await _setupApplicationTask;
            ChangeToMainPage();
            _backgroundTasks.Add(Task.Run(ControllerSupport.Init));

            // Post init cleanup.
            _ = Task.WhenAll(_backgroundTasks).ContinueWith(task =>
            {
                App.StopProfileOptimization();
                GC.Collect(int.MaxValue, GCCollectionMode.Optimized, true, true);
                App.EmptyWorkingSet();
            });

            DisplayFirstLaunchWarningIfNeeded();
        }
        catch (Exception ex)
        {
            var messageBox = new MessageBox(_xamlFailedToLaunchTitle.Get(), _xamlFailedToLaunchMessage.Get() + $" {ex.Message}\n{ex.StackTrace}");
            messageBox.ShowDialog();
        }
    }