Ejemplo n.º 1
0
        private void ContentDialog_SecondaryButtonClick(ModernWpf.Controls.ContentDialog sender, ModernWpf.Controls.ContentDialogButtonClickEventArgs args)
        {
            bool success = App.Current.DiagnosticInfoCollector.CleanInstallFolder(App.Current.Settings.GameLocation);

            if (!success)
            {
                App.Current.QueueDialog(new AlertDialogue("Whoops", "Looks like I wasn't able to delete some files, please make sure you have the game closed before running this. You can try again in the settings page."));
            }
        }
 private async void ContentDialog_PrimaryButtonClick(ModernWpf.Controls.ContentDialog sender, ModernWpf.Controls.ContentDialogButtonClickEventArgs args)
 {
     if (FilteredListView.SelectedItem == null)
     {
         args.Cancel          = true;
         ErrorText.Text       = "Select a Customer to Proceed.";
         ErrorText.Visibility = Visibility.Visible;
     }
     else
     {
         var selectedCustomer = (PersonViewModel)FilteredListView.SelectedItem;
         this.Tag = selectedCustomer;
     }
 }
Ejemplo n.º 3
0
 private void dialog_CloseButtonClick(ModernWpf.Controls.ContentDialog sender, ModernWpf.Controls.ContentDialogButtonClickEventArgs args)
 {
     CancelAction?.Invoke();
 }
Ejemplo n.º 4
0
 private void ContentDialog_PrimaryButtonClick(ModernWpf.Controls.ContentDialog sender, ModernWpf.Controls.ContentDialogButtonClickEventArgs args)
 {
 }
Ejemplo n.º 5
0
 private void UpdateCancellationRequested(ModernWpf.Controls.ContentDialog sender, ModernWpf.Controls.ContentDialogButtonClickEventArgs args)
 {
     UpdateService.Instance.CancelUpdate();
 }
 private async void ContentDialog_Opened(ModernWpf.Controls.ContentDialog sender, ModernWpf.Controls.ContentDialogOpenedEventArgs args)
 {
 }