コード例 #1
0
 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>();
 }
コード例 #2
0
 public Settings(INavigation navigationService, IStorage storageService, ISettings settingsService, IUxService uxService)
     : base(navigationService, storageService, settingsService, uxService)
 {
     _navigationService = navigationService;
     _storageService = storageService;
     _settingsService = settingsService;
     _uxService = uxService;
 }
コード例 #3
0
 public Home(INavigation navigationService, IStorage storageService, ISettings settingsService, IUxService uxService) :
     base(navigationService, storageService, settingsService, uxService)
 {
     _navigationService = navigationService;
     _storageService    = storageService;
     _settingsService   = settingsService;
     _uxService         = uxService;
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 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();
 }
コード例 #6
0
        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();
        }
コード例 #7
0
        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();
        }
コード例 #8
0
ファイル: Home.cs プロジェクト: wuchangqi/ifixit-microsoft
 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"
     });
 }
コード例 #9
0
ファイル: VMLoginPage.cs プロジェクト: tagoro9/nfc
        /// <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);
        }
コード例 #10
0
        /// <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");
        }
コード例 #11
0
 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);
         }
     }
 }
コード例 #12
0
        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;
        }
コード例 #13
0
ファイル: Profile.cs プロジェクト: wuchangqi/ifixit-microsoft
           public Profile(INavigation<Domain.Interfaces.NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector)
            : base(navigationService, storageService, settingsService, uxService, peerConnector)
        {


          
        }
コード例 #14
0
ファイル: Search.cs プロジェクト: wuchangqi/ifixit-microsoft
 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);
     }
 }
コード例 #15
0
ファイル: Home.cs プロジェクト: wuchangqi/ifixit-microsoft
        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" });


        }
コード例 #16
0
ファイル: About.cs プロジェクト: wuchangqi/ifixit-microsoft
        public About(INavigation<NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector)
            : base(navigationService, storageService, settingsService, uxService, peerConnector)
        {


            PageTitle = International.Translation.About;
        }
コード例 #17
0
ファイル: Device.cs プロジェクト: wuchangqi/ifixit-microsoft
        public Device(INavigation<NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector)
            : base(navigationService, storageService, settingsService, uxService, peerConnector)
        {


        }
コード例 #18
0
ファイル: Login.cs プロジェクト: wuchangqi/ifixit-microsoft
 public Login(INavigation <NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector)
     : base(navigationService, storageService, settingsService, uxService, peerConnector)
 {
     PageTitle = International.Translation.Login;
 }
コード例 #19
0
 public MainPageViewModel(IUxService uxService, INavigationService navigationService, IEventAggregator eventAggregator, IServiceBroker serviceBroker, IProgressService progressService, IWindowManager windowManager)
     : base(progressService, windowManager, navigationService)
 {
     this.serviceBroker = serviceBroker;
     this._uxService = uxService;
 }
コード例 #20
0
 public Profile(INavigation <Domain.Interfaces.NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector)
     : base(navigationService, storageService, settingsService, uxService, peerConnector)
 {
 }
コード例 #21
0
ファイル: Search.cs プロジェクト: wuchangqi/ifixit-microsoft
        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);
            }

        }
コード例 #22
0
 public Guide(INavigation <NavigationModes> navigationService, IStorage storageService, ISettings settingsService, IUxService uxService, IPeerConnector peerConnector)
     : base(navigationService, storageService, settingsService, uxService, peerConnector)
 {
     Reset();
 }