public ShowTeachersTimeTableCommand([NotNull] INavigationService navigationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] IUiStringsProviders stringsProviders, [NotNull] University university, [NotNull] LessonTeacher teacher) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (university == null) { throw new ArgumentNullException("university"); } if (teacher == null) { throw new ArgumentNullException("teacher"); } _navigationService = navigationService; _flurryPublisher = flurryPublisher; _stringsProviders = stringsProviders; _university = university; _teacher = teacher; }
public UniversitiesPageViewModel([NotNull] Mvvm.Navigation.INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] IAsyncDataProvider dataProvider, [NotNull] FlurryPublisher flurry, [NotNull] INotificationService notificationService) : base(flurry) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } _dataProvider = dataProvider; _notificationService = notificationService; _navigation = navigation; _applicationSettings = applicationSettings; _resultGrouper = u => u.ShortName[0]; SubscribeToQuery(); }
public FacultiesPageViewModel([NotNull] Mvvm.Navigation.INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] IAsyncDataProvider dataProvider, [NotNull] FlurryPublisher flurryPublisher, [NotNull] INotificationService notificationService) : base(flurryPublisher) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } _navigation = navigation; _applicationSettings = applicationSettings; _dataProvider = dataProvider; _notificationService = notificationService; _facultyGroupFunc = faculty => faculty.Title[0]; SubscribeToQuery(); }
public override void Initialize(NavigationFlow navigationParameter) { _navigationFlow = navigationParameter; _universityId = navigationParameter.UniversityId; _reason = navigationParameter.Reason; FlurryPublisher.PublishPageLoadedFaculties(); Init(); }
public override void Initialize(NavigationFlow navigationFlow) { _navigationFlow = navigationFlow; _universityId = navigationFlow.UniversityId; _facultyId = navigationFlow.FacultyId; _reason = navigationFlow.Reason; FlurryPublisher.PublishPageLoadedGroups(); Init(); }
protected SearchViewModel([NotNull] FlurryPublisher flurryPublisher) { if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } FlurryPublisher = flurryPublisher; _showSearchBoxCommand = new SimpleCommand(() => { IsSearchBoxVisible = true; }); _notFoundCommand = new SimpleCommand(NotFound); }
public AboutViewModel([NotNull] FlurryPublisher flurryPublisher) { if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } _flurryPublisher = flurryPublisher; _flurryPublisher.PublishPageLoadedAbout(); InitCommands(); }
public LessonsPageViewModel([NotNull] INavigationService navigation, [NotNull] FlurryPublisher flurryPublisher, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] ICommandFactory commandFactory, [NotNull] IAsyncDataProvider dataProvider, [NotNull] FavoritedItemsManager favoritedItemsManager, [NotNull] IUiStringsProviders stringsProviders, [NotNull] INotificationService notificationService) { if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } if (commandFactory == null) { throw new ArgumentNullException("commandFactory"); } if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (favoritedItemsManager == null) { throw new ArgumentNullException("favoritedItemsManager"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } _navigation = navigation; _applicationSettings = applicationSettings; _flurryPublisher = flurryPublisher; _commandFactory = commandFactory; _dataProvider = dataProvider; _favoritedItemsManager = favoritedItemsManager; _stringsProviders = stringsProviders; _notificationService = notificationService; Options = new OptionsMonitor(); }
public UpdateLessonCommand([NotNull] FlurryPublisher flurryPublisher, [NotNull] IUiStringsProviders stringsProviders, NavigationFlow navigationFlow, [CanBeNull] Group group) { if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } _flurryPublisher = flurryPublisher; _stringsProviders = stringsProviders; _navigationFlow = navigationFlow; _group = @group; }
public SettingsViewModel([NotNull] BaseApplicationSettings applicationSettings, [NotNull] INavigationService navigationService, [NotNull] FlurryPublisher flurryPublisher) { if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } flurryPublisher.PublishPageLoadedSettings(); Default = new DefaultViewModel(applicationSettings.Me, navigationService); }
public GroupPageViewModel([NotNull] INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] IAsyncDataProvider dataProvider, [NotNull] INotificationService notificationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] FavoritedItemsManager favoritedItemsManager) : base(flurryPublisher) { if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (notificationService == null) { throw new ArgumentNullException("notificationService"); } if (favoritedItemsManager == null) { throw new ArgumentNullException("favoritedItemsManager"); } if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } _navigation = navigation; _applicationSettings = applicationSettings; _dataProvider = dataProvider; _notificationService = notificationService; _favoritedItemsManager = favoritedItemsManager; _groupFunc = group => group.GroupName[0]; _teachersGroupFunc = teacher => !String.IsNullOrWhiteSpace(teacher.Name) ? teacher.Name[0] : '#'; SubscribeToQuery(); }
public FavoritesViewModel([NotNull] INavigationService navigationService, [NotNull] FavoritedItemsManager favoritedItemsManager, [NotNull] FlurryPublisher flurryPublisher) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (favoritedItemsManager == null) { throw new ArgumentNullException("favoritedItemsManager"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } _navigationService = navigationService; flurryPublisher.PublishPageLoadedFavorites(); Items = new ObservableCollection <FavoritedItemViewModel>( favoritedItemsManager.GetFavorites().ToViewModels(_navigationService)); AddCommand = new SimpleCommand(AddNewFavorite); }
public FirstPageViewModel([NotNull] Mvvm.Navigation.INavigationService navigation, [NotNull] BaseApplicationSettings applicationSettings, [NotNull] FlurryPublisher flurryPublisher) { if (navigation == null) { throw new ArgumentNullException("navigation"); } if (applicationSettings == null) { throw new ArgumentNullException("applicationSettings"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } _navigation = navigation; _applicationSettings = applicationSettings; flurryPublisher.PublishPageLoadedSelectRole(); InitCommands(); }
public ShowGroupTimeTableCommand([NotNull] INavigationService navigationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] IAsyncDataProvider dataProvider, [NotNull] IUiStringsProviders stringsProviders, [NotNull] University university, [NotNull] LessonGroup group) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (university == null) { throw new ArgumentNullException("university"); } if (group == null) { throw new ArgumentNullException("group"); } _navigationService = navigationService; _flurryPublisher = flurryPublisher; _dataProvider = dataProvider; _stringsProviders = stringsProviders; _university = university; _group = group; }
public CommandsFactory([NotNull] INavigationService navigationService, [NotNull] FlurryPublisher flurryPublisher, [NotNull] IUiStringsProviders stringsProviders, [NotNull] IAsyncDataProvider dataProvider) { if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (flurryPublisher == null) { throw new ArgumentNullException("flurryPublisher"); } if (stringsProviders == null) { throw new ArgumentNullException("stringsProviders"); } if (dataProvider == null) { throw new ArgumentNullException("dataProvider"); } _navigationService = navigationService; _flurryPublisher = flurryPublisher; _stringsProviders = stringsProviders; _dataProvider = dataProvider; }
public override void Initialize(Reason reason) { _reason = reason; Init(); FlurryPublisher.PublishPageLoadedUniversities(); }