public PostPageViewModel(IUxService uxService, INavigationService navigationService, IServiceBroker serviceBroker, IEventAggregator eventAggregator, IProgressService progressService, IWindowManager windowManager) : base(progressService, windowManager, navigationService) { this._uxService = uxService; this._serviceBroker = serviceBroker; this.Photos = new ObservableCollection<Models.Ui.ItemWithUrl>(); }
public Settings(INavigation navigationService, IStorage storageService, ISettings settingsService, IUxService uxService) : base(navigationService, storageService, settingsService, uxService) { _navigationService = navigationService; _storageService = storageService; _settingsService = settingsService; _uxService = uxService; }
public Home(INavigation navigationService, IStorage storageService, ISettings settingsService, IUxService uxService) : base(navigationService, storageService, settingsService, uxService) { _navigationService = navigationService; _storageService = storageService; _settingsService = settingsService; _uxService = uxService; }
public About(INavigation navigationService, IStorage storageService, ISettings settingsService, IUxService uxService) : base(navigationService, storageService, settingsService, uxService) { _navigationService = navigationService; _storageService = storageService; _settingsService = settingsService; _uxService = uxService; _AppVersion = this._settingsService.AppVersion(); }
public BaseViewModel(INavigation navigationService, IStorage storageService, ISettings settingsService, IUxService uxService) { _navigationService = navigationService; _storageService = storageService; _settingsService = settingsService; _uxService = uxService; Broker.BaseUrl = _settingsService.ServiceUrl(); this.ApplicationName = _settingsService.AppName(); }
public Home( INavigation <NavigationModes> navigationService , IStorage storageService , ISettings settingsService , IUxService uxService , IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 0, Name = "pc", UniqueId = "pc" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 1, Name = "electronics", UniqueId = "electronics" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 2, Name = "media player", UniqueId = "media player" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 3, Name = "computer hardware", UniqueId = "computer hardware" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 4, Name = "game console", UniqueId = "game console" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 5, Name = "car and truck", UniqueId = "car and truck" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 6, Name = "appliance", UniqueId = "appliance" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 7, Name = "mac", UniqueId = "mac" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 8, Name = "apparel", UniqueId = "apparel" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 9, Name = "phone", UniqueId = "phone" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 10, Name = "camera", UniqueId = "camera" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 11, Name = "vehicle", UniqueId = "vehicle" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 12, Name = "tablet", UniqueId = "tablet" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 13, Name = "household", UniqueId = "household" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 14, Name = "skills", UniqueId = "skills" }); }
/// <summary> /// Constructor. /// </summary> /// <param name="navService">Navigation service instance resolved by DI.</param> /// <param name="dispatcherService">Dispatcher service instance resolved by DI.</param> public VMLoginPage(INavigationService navService, IDispatcherService dispatcherService, IApiService apiService, ISettingsService settingsService, IUxService uxService) { this.navService = navService; this.dispatcherService = dispatcherService; this.apiService = apiService; this.settingsService = settingsService; this.uxService = uxService; //this.navigateToRegisterPageCommand = new DelegateCommand(NavigateToRegisterPageExecute); this.loginUserCommand = new DelegateCommand(LoginUserExecute); this.setAsBusyCommand = new DelegateCommand <bool>(SetAsBusyExecte); this.createAccountCommand = new DelegateCommand(CreateAccountExecute); }
/// <summary> /// Constructor. /// </summary> /// <param name="navService">Navigation service instance resolved by DI.</param> /// <param name="dispatcherService">Dispatcher service instance resolved by DI.</param> public VMMainPage(INavigationService navService, IDispatcherService dispatcherService, ISettingsService settingsService, IApiService apiService, INFCService nfcService, IBluetoothService bluetoothService, IBfService bfService, IPairingService pairingService, IUxService uxService) { this.navService = navService; this.settingsService = settingsService; this.dispatcherService = dispatcherService; this.apiService = apiService; this.nfcService = nfcService; this.bluetoothService = bluetoothService; this.bfService = bfService; this.pairingService = pairingService; this.uxService = uxService; this.setAsBusyCommand = new DelegateCommand <bool>(SetAsBusyExecte); this.logOutCommand = new DelegateCommand(LogOutExecute); this.navigateToSecureEmailCommand = new DelegateCommand(NavigateToSecureEmailExecute); this.navigateToShareSecureMessageCommand = new DelegateCommand(NavigateToShareSecureMessageExecute); this.startNfcPairingCommand = new DelegateCommand(StartNfcPairingExecute); this.navigateToAboutCommand = new DelegateCommand(NavigateToAboutExecute); this.addressChooserCommand = new DelegateCommand(AddressChooserExecute); this.sendSecureEmailCommand = new DelegateCommand(SendSecureEmailExecute, SendSecureEmailCanExecute); this.shareSecureMessageCommand = new DelegateCommand(ShareSecureMessageExecute, ShareSecureMessageCanExecute); this.publishMessageCommand = new DelegateCommand(PublishMessageExecute, PublishMessageCanExecute); this.writeToTagCommand = new DelegateCommand(WriteToTagExecute, WriteToTagCanExecute); this.encryptSecureNoteCommand = new DelegateCommand(EncryptSecureNoteExecute, EncryptSecureNoteCanExecute); this.clearLogCommand = new DelegateCommand(ClearLogExecute); this.navigateToInstructionsCommand = new DelegateCommand(NavigateToInstructionsExecite); this.pairDeviceCommand = new DelegateCommand(PairDeviceExecute, PairDeviceCanExecute); //this.pairDeviceCommand = new DelegateCommand(PairDeviceExecute); if (this.nfcService.ConnectDefaultProximityDevice()) { this.nfcService.DeviceArrived += nfcService_DeviceArrived; this.nfcService.DeviceLeft += nfcService_DeviceLeft; this.nfcService.MessageReceivedCompleted += nfcService_MessageReceivedCompleted; this.nfcService.MessagePublishedCompleted += nfcService_MessagePublishedCompleted; this.nfcService.SubscribeToMessage("WriteableTag"); this.nfcService.SubscribeToMessage("NDEF"); this.nfcService.SubscribeToMessage("NDEF:Unknown"); this.nfcService.SubscribeToMessage("WindowsMime"); } else { uxService.ShowToastNotification("Error", AppResources.NoNfcError); LogMessage(AppResources.NoNfcError, NfcLogItem.ERROR_ICON); } contacts = new Contacts(); myIdentity = (string)settingsService.Get("email"); }
public ViewerPageViewModel(IProgressService progressService, IWindowManager windowManager, INavigationService navigationService, IUxService uiService) : base(progressService, windowManager, navigationService) { this._uiService = uiService; if (AppBase.Current.Photos != null) { foreach (var info in AppBase.Current.Photos) { this.Photos.Add(info); } } }
public BaseViewModel( INavigation <Domain.Interfaces.NavigationModes> navigationService , IStorage storageService , ISettings settingsService , IUxService uxService , IPeerConnector peerConnector) { _navigationService = navigationService; _storageService = storageService; _settingsService = settingsService; _uxService = uxService; _peerConnector = peerConnector; Broker = new ServicesEngine.ServiceBroker(_settingsService.AppKey(), _settingsService.AppVersion()); _peerConnector.ConnectionStatusChanged += _peerConnector_ConnectionStatusChanged; _peerConnector.GuideReceived += _peerConnector_GuideReceived; }
public Profile(INavigation<Domain.Interfaces.NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { }
public Search(INavigation <Domain.Interfaces.NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { foreach (ServiceBroker.SearchFilters p in Enum.GetValues(typeof(Services.V2_0.ServiceBroker.SearchFilters))) { SearchSectionCurrentLoading.Add(p, false); } }
public Home( INavigation<NavigationModes> navigationService , IStorage storageService , ISettings settingsService , IUxService uxService , IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 0, Name = "pc", UniqueId = "pc" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 1, Name = "electronics", UniqueId = "electronics" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 2, Name = "media player", UniqueId = "media player" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 3, Name = "computer hardware", UniqueId = "computer hardware" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 4, Name = "game console", UniqueId = "game console" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 5, Name = "car and truck", UniqueId = "car and truck" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 6, Name = "appliance", UniqueId = "appliance" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 7, Name = "mac", UniqueId = "mac" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 8, Name = "apparel", UniqueId = "apparel" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 9, Name = "phone", UniqueId = "phone" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 10, Name = "camera", UniqueId = "camera" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 11, Name = "vehicle", UniqueId = "vehicle" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 12, Name = "tablet", UniqueId = "tablet" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 13, Name = "household", UniqueId = "household" }); Categories.Add(new Models.UI.Category { IndexOf = 1, Order = 14, Name = "skills", UniqueId = "skills" }); }
public About(INavigation<NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { PageTitle = International.Translation.About; }
public Device(INavigation<NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { }
public Login(INavigation <NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { PageTitle = International.Translation.Login; }
public MainPageViewModel(IUxService uxService, INavigationService navigationService, IEventAggregator eventAggregator, IServiceBroker serviceBroker, IProgressService progressService, IWindowManager windowManager) : base(progressService, windowManager, navigationService) { this.serviceBroker = serviceBroker; this._uxService = uxService; }
public Profile(INavigation <Domain.Interfaces.NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { }
public Search(INavigation<Domain.Interfaces.NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { foreach (ServiceBroker.SearchFilters p in Enum.GetValues(typeof(Services.V2_0.ServiceBroker.SearchFilters))) { SearchSectionCurrentLoading.Add(p, false); } }
public Guide(INavigation <NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector) : base(navigationService, storageService, settingsService, uxService, peerConnector) { Reset(); }