public MasterPageViewModel(IPageFactory _page, IAppNavigation _navi) { PageFac = _page; Navi = _navi; MasterPageItems = new List <MenuItem>(); MasterPageItems.Add(new MenuItem { Title = "Home", IconSource = "Search.png", TargetType = typeof(MainMapPage), Id = "home" }); MasterPageItems.Add(new MenuItem { Title = "Profile", IconSource = "Search.png", TargetType = typeof(RumbleApp.Core.UI.Pages.Profile.MyProfile), Id = "profile" }); MasterPageItems.Add(new MenuItem { Title = "Events", IconSource = "Search.png", TargetType = typeof(RumbleApp.Core.UI.Pages.Events.Events), Id = "events" }); }
public ProfileViewModel(IPageFactory _page, IAppNavigation _navi, IProfileService _prof, IEventService _evnt) { Navi = _navi; Page = _page; Prof = _prof; Evnt = _evnt; }
public EventsViewModel(IPageFactory _page, IAppNavigation _navi, IEventService _evnt) { Navi = _navi; Page = _page; Evnt = _evnt; RegisterMessageCenter(); }
public ProductsListViewModel(IAppNavigation navi) { _navi = navi; Title = "Products Page"; MessagingCenter.Subscribe <Product>(this, Messages.NavigateTo, NavigateToProduct); }
public ProductsListViewModel(IAppNavigation navi) { _navi = navi; Title = "Products Page"; MessagingCenter.Subscribe<Product>(this, Messages.NavigateTo, NavigateToProduct); }
public AddEventViewModel(IPageFactory _page, IAppNavigation _navi, IEventService _envt) { PageFac = _page; Navi = _navi; Evnt = _envt; RegisterMessaging(); }
public LoginViewModel(IPageFactory _page, IAppNavigation _navi, IRestService _rest, IAccountService _acc, IProfileService _prof) { PageFac = _page; Navi = _navi; Rest = _rest; Acc = _acc; Prof = _prof; }
public RegisterPage() { NavigationPage.SetHasBackButton(this, false); InitializeComponent(); _storage = App.Resolve <IStorage>().SecureStorage; _navi = App.Resolve <IAppNavigation>(); }
public MainMapPageViewModel(IPageFactory _page, IAppNavigation _navi, IEventService _evnt, IProfileService _prof) { Navi = _navi; Page = _page; Evnt = _evnt; Prof = _prof; RegisterMessageCenter(); }
public RegisterViewModel(IPageFactory _page, IAppNavigation _navi, IRestService _rest, IAccountService _acc, IUserService _user) { PageFac = _page; Navi = _navi; Rest = _rest; Acc = _acc; Usr = _user; }
public RecipesViewModel(IAppNavigation _navi, IPageFactory _page) { Title = "Recipes"; Navi = _navi; PageFac = _page; IsFilterVisible = false; IsResultsVisible = true; }
public ReadItemViewModel(SelfwinApp app, IAppNavigation navigation, ItemViewModel item) { this.App = app; this.Navigation = navigation; if (item != null) { Parameter = item; } }
public Page2ViewModel(IAppNavigation appNavigation) { _appNavigation = appNavigation; PopCommand = new Command(async() => { // Add the key to the input string. await _appNavigation.PopToRootPageAsync(); }); }
public SettingsPageRootViewModel(IAppNavigation appNavigation) { _appNavigation = appNavigation; GoPage3Command = new Command(async() => { // Add the key to the input string. await _appNavigation.GotoPage3(); }); }
public ListPageRootViewModel(IAppNavigation appNavigation) { _appNavigation = appNavigation; TestCommand = new Command(async() => { // Add the key to the input string. await _appNavigation.GotoPage2(); }); }
public GuideViewModel(IAppNavigation navi, IPageFactory page) { App.PageOpenedDateTime = DateTime.UtcNow; _navi = navi; _page = page; SetPageVisibility(); Skipped = false; Adults = 0; Children = 0; OtherOutfit = string.Empty; }
public MainPageViewModel(IAppNavigation appNavigation) { _appNavigation = appNavigation; this.AddCharCommand = new Command <string>((key) => { // Add the key to the input string. WelcomeText = "Changed"; }); GoPage2Command = new Command(async() => { //_appNavigation.RootPage = App.RootPage; await _appNavigation.GotoPage2(); }); }
public CategoriesListViewModel(IProductService service, IAppNavigation navi, IScanner scanner, LogOutCommand logOut) { _service = service; _navi = navi; _scanner = scanner; _logOut = logOut; MessagingCenter.Subscribe <Category>(this, Messages.NavigateTo, NavigateToCategory); _searchCommand = new RelayCommand(Search, () => !string.IsNullOrWhiteSpace(SearchTerm)); ScanCommand = new RelayCommand(async() => { var result = await _scanner.Scan(); SearchTerm = result.Text; Search(); }); Categories = new NotifyTaskCompletion <List <CategoryViewModel> >(GetCategories()); }
public CategoriesListViewModel(IProductService service, IAppNavigation navi, IScanner scanner, LogOutCommand logOut) { _service = service; _navi = navi; _scanner = scanner; _logOut = logOut; MessagingCenter.Subscribe<Category>(this, Messages.NavigateTo, NavigateToCategory); _searchCommand = new Command(Search, () => !string.IsNullOrWhiteSpace(SearchTerm)); ScanCommand = new Command(async () => { var result = await _scanner.Scan(); SearchTerm = result.Text; Search(); }); AboutCommand = new Command(async () => await _navi.ShowAbout()); Categories = new NotifyTaskCompletion<List<CategoryViewModel>>(GetCategories()); }
public MainPageViewModel(IAppNavigation appNav) { _appNav = appNav; LoadListCommand = ReactiveCommand.CreateFromTask <List <StationInfoModel> >(execute: () => LoadListAsync(), outputScheduler: RxApp.MainThreadScheduler); LoadSensorsCommand = ReactiveCommand.CreateFromTask <StationInfoModel, List <SensorInfoModel> >(station => LoadStationSensorsAsync(station), outputScheduler: RxApp.MainThreadScheduler); LoadDataCommand = ReactiveCommand.CreateFromTask <SensorInfoModel, SensorDataEntry>(sensor => LoadSensorDataAsync(sensor), outputScheduler: RxApp.MainThreadScheduler); _stationsInfoList = LoadListCommand.ToProperty(this, x => x.StationsList, new List <StationInfoModel>()); _sensorInfoModels = LoadSensorsCommand.ToProperty(this, x => x.SensorsList, new List <SensorInfoModel>()); _sensorData = LoadDataCommand.ToProperty(this, x => x.SensorData, new SensorDataEntry()); this.ObservableForProperty(x => x.IsBeingNavigated) .Select(e => new Unit()) .InvokeCommand(LoadListCommand); this.ObservableForProperty(x => x.SelectedStation) .Select(e => e.Value) .InvokeCommand(LoadSensorsCommand); this.ObservableForProperty(x => x.SensorsList) .Select(e => e.Value) .Subscribe(x => SelectedSensor = x?.FirstOrDefault()); this.ObservableForProperty(x => x.SelectedSensor) .Select(e => e.Value) .InvokeCommand(LoadDataCommand); _filteredStationsInfoList = this.WhenAnyValue( x => x.Filter, x => x.StationsList, (f, l) => l.CreateDerivedCollection(x => x, x => x.StationName.Contains(string.IsNullOrEmpty(f) ? "" : f) ).ToList() ) .ToProperty(this, x => x.FilteredStationsList, new List <StationInfoModel>()); }
public LogOutCommand(ILoginService login, IAppNavigation navi) { _login = login; _navi = navi; _canExecute = true; }
public MainViewModel(IAppNavigation navigation, IWeatherService weatherService) { _navigation = navigation; _weatherService = weatherService; }
public ProfilePage() { InitializeComponent(); _storage = App.Resolve <IStorage>().SecureStorage; _navi = App.Resolve <IAppNavigation>(); }
public DiscoveryViewModel(IProductService productService, IAppNavigation navi) { _productService = productService; _navi = navi; getProductList(); }
public DemoViewModel(IAppNavigation navigation) { _navigation = navigation; }
public LoginViewModel(ILoginService loginService, IAppNavigation navigationService) { _loginService = loginService; _navigationService = navigationService; }
public AddRecipeViewModel(IAppNavigation _navi) { Navi = _navi; }
public LoginViewModel(IAuthenticationService authService, IAppNavigation navigationService) { _authService = authService; _navigationService = navigationService; }
public App(IAppNavigation appNavigation) { _appNavigation = appNavigation; }
public WelcomeViewModel(IAppNavigation navi) { _navi = navi; _slim = new SemaphoreSlim(0, 1); IsBusy = new NotifyTaskCompletion<int>(GoToFirstPage()); }
public ItemDetailViewModel(IAppNavigation _navi, IPageFactory _page) { Navi = _navi; PageFac = _page; }
public WelcomeViewModel(IAppNavigation navi) { _navi = navi; _slim = new SemaphoreSlim(0, 1); IsBusy = new NotifyTaskCompletion <int>(GoToFirstPage()); }
public MainPageViewModel(IPageFactory _page, IAppNavigation _navi) { PageFac = _page; Navi = _navi; }
public AllItemsViewModel(IAppNavigation navigation, SelfwinApp app) { this.App = app; this.Navigation = navigation; }
public EditRecipeViewModel(IAppNavigation _navi, IPageFactory _page) { Navi = _navi; PageFac = _page; }