public DiagnosticTraceButtonViewModel(IFolderPickerService folderPicker, IEventLogger logger, IEventTracer tracer, string startTraceLabel, string stopTraceLabel) { this.isBusy = false; this.folderPicker = folderPicker ?? throw new ArgumentNullException(nameof(folderPicker)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.tracer = tracer ?? throw new ArgumentNullException(nameof(tracer)); this.traceCommand = new AsyncActionCommand(() => !this.isBusy, ToggleTrace); this.startTraceLabel = startTraceLabel; this.stopTraceLabel = stopTraceLabel; IsTracing = false; }
/// <summary> /// Initializes a new instance of the <see cref="StopViewModel"/> class. /// </summary> public StopViewModel( INavigationService navigationService, ILanguageService languageService, ISvgIconService svgIconService, IThemeService themeService, IBaseUrlService webviewBaseUrl, IRepositoryStorageService repositoryService, IFolderPickerService folderPickerService) : base(navigationService, languageService, svgIconService, themeService, webviewBaseUrl) { _repositoryService = repositoryService; _folderPickerService = folderPickerService; RecoverRepositoryCommand = new RelayCommand(RecoverRepository); }
public ExportViewModel( INavigationService navigationService, ILanguageService languageService, ISvgIconService svgIconService, IThemeService themeService, IBaseUrlService webviewBaseUrl, IFeedbackService feedbackService, ICryptoRandomSource randomSource, IRepositoryStorageService repositoryService, IFolderPickerService folderPickerService) : base(navigationService, languageService, svgIconService, themeService, webviewBaseUrl) { _feedbackService = feedbackService; _repositoryService = repositoryService; _folderPickerService = folderPickerService; _noteCryptor = new Cryptor(NoteModel.CryptorPackageName, randomSource); GoBackCommand = new RelayCommand(GoBack); CancelCommand = new RelayCommand(Cancel); OkCommand = new RelayCommand(Ok); ExportUnprotectedNotes = true; }
public LocationService(IFolderPickerService folderPickerService) { _folderPickerService = folderPickerService ?? throw new ArgumentNullException(nameof(folderPickerService)); }