protected async override void OnExecute(object parameter)
 {
     try
     {
         await SaveSettingsCommand.ExecuteAsync(this.shell);
     }
     catch (Exception e)
     {
         await AppMessageBox.ShowErrorAsync(e);
     }
 }
예제 #2
0
 protected async override void OnExecute(object parameter)
 {
     try
     {
         if (this.shell.SettingsPath != string.Empty)
         {
             await this.shell.SaveSettingsAsync();
         }
         else
         {
             await SaveSettingsCommand.ExecuteAsync(this.shell);
         }
     }
     catch (Exception e)
     {
         await AppMessageBox.ShowErrorAsync(e);
     }
 }