public SynchronizationPageViewModel() { _syncService = SynchronizationService.GetInstance(); StartSyncCommand = new DelegateCommand(async() => { await _syncService.StartSyncProcess(); }); }
public SyncedFolderConfigurationPageViewModel() { DeleteCommand = new DelegateCommand(Delete); SaveCommand = new DelegateCommand(Save); _syncService = SynchronizationService.GetInstance(); StartSyncCommand = new DelegateCommand(async() => { Save(); await NavigationService.NavigateAsync(typeof(SynchronizationPage)); await _syncService.StartSyncProcess(); }); }