protected async override void OnExecute(object parameter) { try { await SaveSettingsCommand.ExecuteAsync(this.shell); } catch (Exception e) { await AppMessageBox.ShowErrorAsync(e); } }
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); } }