public TaskCollectionsViewModel( INavigationService navigationService, IRtmServiceClient rtmServiceClient, ITaskStoreLocator taskStoreLocator, IListStoreLocator listStoreLocator, ILocationStoreLocator locationStoreLocator, ISynchronizationService synchronizationService) : base(navigationService) { this._rtmServiceClient = rtmServiceClient; this._taskStoreLocator = taskStoreLocator; this._listStoreLocator = listStoreLocator; this._locationStoreLocator = locationStoreLocator; this._synchronizationService = synchronizationService; this.submitErrorInteractionRequest = new InteractionRequest<Notification>(); this.submitNotificationInteractionRequest = new InteractionRequest<Notification>(); this.StartSyncCommand = new DelegateCommand( () => { this.StartSync(); }, () => !this.IsSyncing && !this.SettingAreNotConfigured); this.ViewTaskCollectionCommand = new DelegateCommand( () => { this.NavigationService.Navigate(new Uri("/Views/TaskCollectionView.xaml", UriKind.Relative)); }, () => !this.IsSyncing); this.AppSettingsCommand = new DelegateCommand( () => { this.NavigationService.Navigate(new Uri("/Views/AppSettingsView.xaml", UriKind.Relative)); }, () => !this.IsSyncing); this.IsBeingActivated(); }
public AuthorizeViewModel(ISettingsStore settingsStore, INavigationService navigationService, IRtmServiceClient rtmManager) : base(navigationService) { this.settingsStore = settingsStore; this.rtmServiceClient = rtmManager; this.DoneCommand = new DelegateCommand(this.Done); this.IsBeingActivated(); }