コード例 #1
0
 public EditWorkoutViewModel(INavService navService, IFitnessService fitnessService, ILocalDatabase localDatabase)
     : base(navService)
 {
     this.navService    = navService;
     _fitnessService    = fitnessService;
     this.localDatabase = localDatabase;
 }
コード例 #2
0
 public MainPageViewModel(INavService navService, IEventAggregator eventAggregator, IDispatcherUiService dispatcherUiService)
 {
     _dispatcherUiService        = dispatcherUiService;
     navService.NavigationFailed = e => eventAggregator.GetEvent <ErrorEvent>().Publish(e);
     eventAggregator.GetEvent <ErrorEvent>().Subscribe(LogError);
     _dispatcherUiService.Run(navService.Navigate <LoginViewModel>);
 }
コード例 #3
0
 protected BaseViewModel(INavService navService, IDataStore <MealLog, ActivityLog> dataStore, ICloudStoreService cloudStoreService, IAlertService alertService)
 {
     NavService        = navService;
     DataStore         = dataStore;
     CloudStoreService = cloudStoreService;
     AlertService      = alertService;
 }
コード例 #4
0
 protected BaseViewModel(INavService navService, IDataStore <MealLog, ActivityLog> dataStore, IAuthenticationService authenticationService, IAlertService alertService)
 {
     NavService            = navService;
     DataStore             = dataStore;
     AuthenticationService = authenticationService;
     AlertService          = alertService;
 }
コード例 #5
0
 public App()
 {
     InitializeComponent();
     try
     {
         //       MainPage = new SignaturePage();
         CrossConnectivity.Current.ConnectivityChanged += Current_ConnectivityChanged;
         IsConnected = CrossConnectivity.Current.IsConnected;
         Locator     = new ViewModelLocator();
         if (!SimpleIoc.Default.IsRegistered <INavigationService>())
         {
             RegisterNavService();
         }
         else
         {
             navigationService = SimpleIoc.Default.GetInstance <INavService>();
         }
     }
     catch (Exception ex)
     {
         Log.Info("Ifeoluwa", ex.StackTrace);
         Log.Info("Ifeoluwa", ex.Message);
         Utils.Utility.ShowDebug(ex);
     }
 }
コード例 #6
0
 public VprSubscribedViewModel(IViewPointReaderRepository viewPointReaderRepository
                               , INavService navService) : base(navService)
 {
     _viewPointReaderRepository = viewPointReaderRepository;
     NavService        = navService;
     FeedSubscriptions = new ObservableCollection <IFeedSubscription>();
 }
コード例 #7
0
 public VprFeedArticlesViewModel(IViewPointReaderRepository viewPointReaderRepository
                                 , INavService navService) : base(navService)
 {
     _viewPointReaderRepository = viewPointReaderRepository;
     NavService = navService;
     FeedItems  = new ObservableCollection <VprFeedItem>();
 }
コード例 #8
0
        protected BaseViewModel(INavService navService)
        {
            NavService = navService;

            TokenService      = DependencyService.Get <ITokenService>();
            GoogleDataService = new GoogleDataService();
        }
コード例 #9
0
        public NewEntryViewModel(INavService navService, ILocationService locService) : base(navService)
        {
            _locService = locService;

            EntryDate   = DateTime.Today;
            EntryRating = 1;
        }
コード例 #10
0
ファイル: NewEntryViewModel.cs プロジェクト: blombas/TripLog
		public NewEntryViewModel (INavService navService, ILocationService locService, ITripLogDataService tripLogDataService) : base(navService)
		{
			this.tripLogDataService = tripLogDataService;
			this.locService = locService;
			Date = DateTime.Today;
			Rating = 1;
		}
コード例 #11
0
 public AnnunciUtenteViewModel(INavService navService, AnnuncioService annuncioService, FotoService fotoService) : base(navService)
 {
     _annuncioService    = annuncioService;
     _fotoService        = fotoService;
     AnnunciPrenotati    = new ObservableCollection <Ad>();
     AnnunciNonPrenotati = new ObservableCollection <Ad>();
 }
コード例 #12
0
 public ModeSelectViewModel(INavService navService, IMemoryService memService,
                            IDataExchangeService exchangeService, IAlertMessageService alertService) : base(navService)
 {
     this.memService      = memService;
     this.exchangeService = exchangeService;
     this.alertService    = alertService;
 }
コード例 #13
0
 public NavController(IHrDbContext context, INavService navService, IOperationService navOperation, INavOperationService navOperationService)
 {
     _context             = context;
     _navService          = navService;
     _operationService    = navOperation;
     _navOperationService = navOperationService;
 }
コード例 #14
0
 public SelectPlaceViewModel(INavService navService,
                             ICateringDataService cateringService) : base(navService)
 {
     _cateringService = cateringService;
     GetPlacesCommand = new Command <string>(async(param) => await GetPlacesByName(param));
     SaveEntryCommand = new Command <GooglePlaceAutoCompletePrediction>(async(param) => await SaveEntry(param));
 }
コード例 #15
0
 public AggiungiAnnuncioViewModel(INavService navService, FotoService fotoService, AnnuncioService annuncioService) : base(navService)
 {
     _fotoService          = fotoService;
     _annuncioService      = annuncioService;
     Immagini              = new ObservableCollection <Image>();
     listaImmaginiInBase64 = new List <string>();
 }
コード例 #16
0
ファイル: ModificaDatiViewModel.cs プロジェクト: Dr-Dd/RentIT
 public ModificaDatiViewModel(INavService navService, UserService userService, FotoService fotoService) : base(navService)
 {
     _userService = userService;
     _fotoService = fotoService;
     Immagine     = new Image();
     ListaCitta   = MiscCostants.tutteCitta;
 }
コード例 #17
0
 public NewExerciseViewModel(INavService navService, IFitnessService fitness, ILocalDatabase localDatabase)
     : base(navService)
 {
     this.navService    = navService;
     _fitnessService    = fitness;
     this.localDatabase = localDatabase;
 }
コード例 #18
0
 public NavMediator(INavService NavService, IMediatorService mediatorService,
                    INavViewModelFactory NavViewModelFactory)
 {
     _NavService          = NavService;
     _mediatorService     = mediatorService;
     _NavViewModelFactory = NavViewModelFactory;
 }
コード例 #19
0
 public MainViewModel(INavService navService,
                      ITripLogDataService tripLogService, IBlobCache cache) : base(navService)
 {
     _tripLogService = tripLogService;
     _cache          = cache;
     LogEntries      = new ObservableCollection <TripLogEntry>();
 }
コード例 #20
0
 public NewActivityLogViewModel(INavService navService, IDataStore <MealLog, ActivityLog> dataStore) : base(navService, dataStore)
 {
     SaveCommand           = new Command(OnSave, ValidateSave);
     CancelCommand         = new Command(OnCancel);
     this.PropertyChanged +=
         (_, __) => SaveCommand.ChangeCanExecute();
 }
コード例 #21
0
 public SearchPageViewModel(INavService navService, AnnuncioService annuncioService, UserService userService, AuthenticationService authService) : base(navService)
 {
     _userService     = userService;
     _annuncioService = annuncioService;
     _authService     = authService;
     ListaCitta       = MiscCostants.tutteCitta;
 }
コード例 #22
0
 public SignInViewModel(INavService navService,
                        IAuthService authService,
                        IUsersDataService usersService)
     : base(navService)
 {
     _authService  = authService;
     _usersService = usersService;
 }
コード例 #23
0
 public async Task EndTheGame(INavService navService)
 {
     hubConnection.On(MessageType.LeaveGame, async() =>
     {
         await App.Current.MainPage.DisplayAlert("Game Ended By A Player", "Play again soon!", "Ok");
         await navService.GoBack();
     });
 }
コード例 #24
0
 public TransactionViewModel(INavService navService, INetworkService netService,
                             IDatabaseService db, ICustomDialogService dialog) : base(navService, netService, db, dialog)
 {
     IsBusy      = false;
     JsonContent = new SupportFormModel();
     var location = DependencyService.Get <ILocationInterface>();
     //       DependencyService.Get<ILocationInterface>().InitialService();
 }
コード例 #25
0
 public UtentePageViewModel(INavService navService, AuthenticationService authService, UserService userService, FotoService fotoService, AnnuncioService annuncioService) : base(navService)
 {
     _authService     = authService;
     _userService     = userService;
     _fotoService     = fotoService;
     _annuncioService = annuncioService;
     Immagine         = new Image();
 }
コード例 #26
0
ファイル: MainViewModel.cs プロジェクト: lipowskm/Catering
 public MainViewModel(INavService navService,
                      ICateringDataService cateringService,
                      IBlobCache cache) : base(navService)
 {
     _cache           = cache;
     _cateringService = cateringService;
     CateringEntries  = new ObservableCollection <CateringEntry>();
 }
コード例 #27
0
 public AssetsViewModel(INavService nav, IHttpService http, IDialogService dialog) : base(nav, http, dialog)
 {
     Assets     = new RangeObservableCollection <AssetDto>();
     pageSize   = 5;
     pageNumber = 1;
     RefreshAssets();
     nav.OnGoingBack += NavOnGoingBack;
 }
コード例 #28
0
 public ClockPlugin(INavService navService)
 {
     _navService = navService;
     _navService.AddItem(new NavItem()
     {
         DisplayName = "Clock Plugin", Url = "clock"
     });
 }
コード例 #29
0
ファイル: VMShowUsers.cs プロジェクト: annibac/movieNet
 public VMShowUsers(INavService navigationService)
 {
     _navigationService = navigationService;
     InfoUser           = new RelayCommand(InfoAction, CanAction);
     EditUser           = new RelayCommand(EditAction, CanAction);
     DeleteUser         = new RelayCommand(DeleteAction, CanAction);
     GetUsers();
 }
コード例 #30
0
 public async Task UserSentToGame(INavService NavService)
 {
     hubConnection.On <GameModel>(MessageType.SendToGame, async(game) =>
     {
         Console.WriteLine("I am being sent to the game");
         await NavService.NavigateTo <GameViewModel <GameModel>, GameModel>(game);
     });
 }
コード例 #31
0
 public LoginViewModel(ITokenClientConfig tokenClientConfig, INavService navService)
 {
     _tokenClientConfig = tokenClientConfig;
     _navService        = navService;
     LoginCommand       = new AsyncCommand(DoLogin, () => !string.IsNullOrWhiteSpace(UserName) && !string.IsNullOrWhiteSpace(Password))
                          .ObservesProperty(() => UserName)
                          .ObservesProperty(() => Password);
 }
コード例 #32
0
 public BuyAndHoldController(IBuyAndHoldService buyAndHoldService,
     ITickerService tickerService,
     INavService navService,
     ISecurityService securityService,
     IBuyAndHoldTransactionDtoMap buyAndHoldTransactionDtoMap,
     IBuyAndHoldRawTransactionMapper buyAndHoldRawTransactionMapper,
     IBuyAndHoldTransactionLibrary buyAndHoldTransactionLibrary,
     IBuyAndHoldRawTransactionLibrary buyAndHoldRawTransactionLibrary)
 {
     _buyAndHoldService = buyAndHoldService;
     _tickerService = tickerService;
     _navService = navService;
     _securityService = securityService;
     _buyAndHoldTransactionDtoMap = buyAndHoldTransactionDtoMap;
     _buyAndHoldRawTransactionMapper = buyAndHoldRawTransactionMapper;
     _buyAndHoldTransactionLibrary = buyAndHoldTransactionLibrary;
     _buyAndHoldRawTransactionLibrary = buyAndHoldRawTransactionLibrary;
 }
コード例 #33
0
ファイル: BaseViewModel.cs プロジェクト: blombas/TripLog
		protected BaseViewModel (INavService navService)
		{
			NavService = navService;
		}
コード例 #34
0
ファイル: SignInViewModel.cs プロジェクト: blombas/TripLog
		public SignInViewModel (INavService navService, IAuthService authService, ITripLogDataService tripLogService) : base(navService)
		{
			this.authService = authService;
			this.tripLogService = tripLogService;
		}
コード例 #35
0
ファイル: MainViewModel.cs プロジェクト: blombas/TripLog
		public MainViewModel (INavService navService, ITripLogDataService tripLogDataService, IBlobCache cache) : base(navService)
		{
			this.tripLogDataService = tripLogDataService;
			this.cache = cache;
			LogEntries = new ObservableCollection<TripLogEntry> ();
		}