/// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public TravelRequestFormViewModel(INavigationService navService, ISampleDataService sampleDataService, IMyCompanyClient myCompanyClient)
 {
     this.navService        = navService;
     this.sampleDataService = sampleDataService;
     this.myCompanyClient   = myCompanyClient;
     SubscribeCommands();
 }
Example #2
0
 public SampleDataController(
     ISampleDataService sampleDataService,
     IStateOrProvinceService stateOrProvinceService)
 {
     _sampleDataService      = sampleDataService;
     _stateOrProvinceService = stateOrProvinceService;
 }
 public ContentGridDetailViewModel(ISampleDataService sampleDataServiceInstance, IConnectedAnimationService connectedAnimationService, INavigationService navigationService)
 {
     // TODO WTS: Replace this with your actual data
     _sampleDataService         = sampleDataServiceInstance;
     _connectedAnimationService = connectedAnimationService;
     _navigationService         = navigationService;
 }
Example #4
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        public VMMainPage(
            INavigationService navService,
            IMyCompanyClient clientService,
            IMessageService messageService,
            ITilesService tilesService,
            ISampleDataService sampleDataService,
            IDispatcherService dispatcherService)
        {
            this.navService        = navService;
            this.clientService     = clientService;
            this.messageService    = messageService;
            this.tilesService      = tilesService;
            this.sampleDataService = sampleDataService;
            this.dispatcherService = dispatcherService;

            loader = ResourceLoader.GetForCurrentView();
            InitializeCommands();


            if (base.IsInDesignMode)
            {
                InitializeMockedData();
            }

            if (!base.IsInDesignMode)
            {
                InitializeNotifications();
            }
        }
Example #5
0
 public MasterDetailPageViewModel(INavigationService navigationService, ISampleDataService sampleDataService)
 {
     this.navigationService = navigationService;
     this.sampleDataService = sampleDataService;
     ItemClickCommand       = new DelegateCommand <ItemClickEventArgs>(OnItemClick);
     StateChangedCommand    = new DelegateCommand <VisualStateChangedEventArgs>(OnStateChanged);
     SetInitialStateCommand = new DelegateCommand <VisualState>(SetInitialState);
 }
Example #6
0
 public MasterDetailViewModel(INavigationService navigationServiceInstance, ISampleDataService sampleDataServiceInstance)
 {
     _navigationService  = navigationServiceInstance;
     _sampleDataService  = sampleDataServiceInstance;
     ItemClickCommand    = new DelegateCommand <ItemClickEventArgs>(OnItemClick);
     StateChangedCommand = new DelegateCommand <VisualStateChangedEventArgs>(OnStateChanged);
     LoadedCommand       = new DelegateCommand <VisualState>(OnLoaded);
 }
 public SampleDataController(ISampleDataService sampleDataService)
 {
     if (sampleDataService == null)
     {
         throw new ArgumentNullException("sampleDataService");
     }
     _sampleDataService = sampleDataService;
 }
Example #8
0
 public AddSampleCommentsJob(ISession session, TaskCache <string, PreparedStatement> statementCache, ISampleDataService sampleDataService)
     : base(session, statementCache)
 {
     if (sampleDataService == null)
     {
         throw new ArgumentNullException("sampleDataService");
     }
     _sampleDataService = sampleDataService;
 }
 public RefreshYouTubeVideoSourcesJob(ISession session, TaskCache <string, PreparedStatement> statementCache, ISampleDataService sampleDataService)
     : base(session, statementCache)
 {
     if (sampleDataService == null)
     {
         throw new ArgumentNullException("sampleDataService");
     }
     _sampleDataService = sampleDataService;
 }
Example #10
0
 public ContentGridViewModel(ISampleDataService sampleDataService, IRegionManager regionManager)
 {
     _sampleDataService = sampleDataService;
     _regionManager     = regionManager;
     if (regionManager.Regions.ContainsRegionWithName(Regions.Main))
     {
         _navigationService = regionManager.Regions[Regions.Main].NavigationService;
     }
 }
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(
     INavigationService navService,
     ISampleDataService sampleDataService,
     IMyCompanyClient myCompanyClient)
 {
     this.navService        = navService;
     this.sampleDataService = sampleDataService;
     this.myCompanyClient   = myCompanyClient;
     Messenger.Default.Register <LoadingMessage>(this, HandleLoadingMessage);
     Messenger.Default.Register <CustomDialogMessage>(this, HandleDialogMessage);
 }
        /// <summary>
        /// Initializes a new instance of the TravelListViewModel class.
        /// </summary>
        public TravelListViewModel(INavigationService navService, ISampleDataService sampleDataService, IMyCompanyClient myCompanyClient)
        {
            this.navService        = navService;
            this.sampleDataService = sampleDataService;
            this.myCompanyClient   = myCompanyClient;
            SubscribeCommands();

            if (base.IsInDesignMode)
            {
                InitializeMockedData();
            }
        }
        public AddSampleYouTubeVideosJob(ISession session, TaskCache<string, PreparedStatement> statementCache, ISampleDataService sampleDataService,
                                         IManageSampleYouTubeVideos youTubeManager, IGetSampleData sampleDataRetriever)
            : base(session, statementCache)
        {
            if (sampleDataService == null) throw new ArgumentNullException("sampleDataService");
            if (youTubeManager == null) throw new ArgumentNullException("youTubeManager");
            if (sampleDataRetriever == null) throw new ArgumentNullException("sampleDataRetriever");

            _sampleDataService = sampleDataService;
            _youTubeManager = youTubeManager;
            _sampleDataRetriever = sampleDataRetriever;
        }
 /// <summary>
 /// Default constructor.
 /// </summary>
 public VMSearchVisitorPage(INavigationService navService, IMyCompanyClient clientService,
                            IMessageService messageService, ISampleDataService sampleDataService)
 {
     this.navService        = navService;
     this.clientService     = clientService;
     this.messageService    = messageService;
     this.sampleDataService = sampleDataService;
     InitializeCommands();
     if (base.IsInDesignMode)
     {
         InitializeMockedData();
     }
 }
        public AddSampleYouTubeVideosJob(ISession session, TaskCache <string, PreparedStatement> statementCache, ISampleDataService sampleDataService,
                                         IManageSampleYouTubeVideos youTubeManager, IGetSampleData sampleDataRetriever)
            : base(session, statementCache)
        {
            if (sampleDataService == null)
            {
                throw new ArgumentNullException("sampleDataService");
            }
            if (youTubeManager == null)
            {
                throw new ArgumentNullException("youTubeManager");
            }
            if (sampleDataRetriever == null)
            {
                throw new ArgumentNullException("sampleDataRetriever");
            }

            _sampleDataService   = sampleDataService;
            _youTubeManager      = youTubeManager;
            _sampleDataRetriever = sampleDataRetriever;
        }
Example #16
0
        public MainViewModel(ISampleDataService sampleDataService)
        {
            this.sampleDataService = sampleDataService;

            this.WhenActivated(d =>
            {
                d(sampleDataService.GetSampleDataAsync()
                  .ToObservable()
                  .Select(root => root.Groups.Select(g => new GroupViewModel(g)))
                  .Select(e => new ReactiveList <GroupViewModel>(e))
                  .ToProperty(this, x => x.Groups, out this.groups, null, RxApp.MainThreadScheduler));

                d(this.WhenAnyValue(x => x.Groups).Where(x => x != null).Select(g => g[0]).ToProperty(this, x => x.FirstGroup, out this.firstGroup, null, RxApp.MainThreadScheduler));
                d(this.WhenAnyValue(x => x.Groups).Where(x => x != null).Select(g => g[1]).ToProperty(this, x => x.SecondGroup, out this.secondGroup, null, RxApp.MainThreadScheduler));
                d(this.WhenAnyValue(x => x.Groups).Where(x => x != null).Select(g => g[2]).ToProperty(this, x => x.ThirdGroup, out this.thirdGroup, null, RxApp.MainThreadScheduler));
                d(this.WhenAnyValue(x => x.Groups).Where(x => x != null).Select(g => g[3]).ToProperty(this, x => x.FourthGroup, out this.fourthGroup, null, RxApp.MainThreadScheduler));

                d(this.Command = ReactiveCommand.Create());
                d(this.Command.Subscribe(_ => this.OpenViewModel <TestViewModel>()));
            });
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        public VMVisitDetailPage(
            INavigationService navService,
            IMyCompanyClient clientService,
            IMessageService messageService,
            ITilesService tilesService,
            ISampleDataService sampleDataService,
            IStorageService storageService,
            IDispatcherService dispatcherService)
        {
            this.navService        = navService;
            this.clientService     = clientService;
            this.messageService    = messageService;
            this.tilesService      = tilesService;
            this.sampleDataService = sampleDataService;
            this.storageService    = storageService;
            this.dispatcherService = dispatcherService;

            InitializeCommands();
            if (base.IsInDesignMode)
            {
                InitializeMockedData();
            }
        }
 public GridPageViewModel(ISampleDataService sampleDataService)
 {
     this.sampleDataService = sampleDataService;
 }
 public ChartViewViewModel(ISampleDataService sampleDataServiceInstance)
 {
     _sampleDataService = sampleDataServiceInstance;
 }
Example #20
0
 public ContentGridViewModel(INavigationService navigationServiceInstance, ISampleDataService sampleDataServiceInstance, IConnectedAnimationService connectedAnimationService)
 {
     _navigationService         = navigationServiceInstance;
     _sampleDataService         = sampleDataServiceInstance;
     _connectedAnimationService = connectedAnimationService;
 }
 public MasterDetailViewModel(ISampleDataService sampleDataService)
 {
     _sampleDataService = sampleDataService;
 }
 public AddSampleCommentsJob(ISession session, TaskCache<string, PreparedStatement> statementCache, ISampleDataService sampleDataService) 
     : base(session, statementCache)
 {
     if (sampleDataService == null) throw new ArgumentNullException("sampleDataService");
     _sampleDataService = sampleDataService;
 }
 public SampleDataController(ISampleDataService sampleDataService)
 {
     if (sampleDataService == null) throw new ArgumentNullException("sampleDataService");
     _sampleDataService = sampleDataService;
 }
Example #24
0
 public DataGridViewModel(ISampleDataService sampleDataServiceInstance)
 {
     _sampleDataService = sampleDataServiceInstance;
 }
Example #25
0
 public ContentGridViewModel(ISampleDataService sampleDataService, INavigationService navigationService)
 {
     _sampleDataService = sampleDataService;
     _navigationService = navigationService;
 }
 public RefreshYouTubeVideoSourcesJob(ISession session, TaskCache<string, PreparedStatement> statementCache, ISampleDataService sampleDataService) 
     : base(session, statementCache)
 {
     if (sampleDataService == null) throw new ArgumentNullException("sampleDataService");
     _sampleDataService = sampleDataService;
 }
Example #27
0
 public MainViewModel(ISampleDataService sampleDataService)
 {
     _sampleDataService = sampleDataService;
 }
 public ContentGridDetailViewModel(ISampleDataService sampleDataService)
 {
     _sampleDataService = sampleDataService;
 }
Example #29
0
 public HelloWorldController(ISampleDataService sampleDataService)
 {
     _sampleDataService = sampleDataService;
 }
Example #30
0
 public ImageGalleryViewViewModel(INavigationService navigationServiceInstance, ISampleDataService sampleDataServiceInstance, IConnectedAnimationService connectedAnimationService)
 {
     _navigationService         = navigationServiceInstance;
     _sampleDataService         = sampleDataServiceInstance;
     _connectedAnimationService = connectedAnimationService;
 }
 public MasterDetailViewViewModel(INavigationService navigationServiceInstance, ISampleDataService sampleDataServiceInstance)
 {
     _navigationService = navigationServiceInstance;
     _sampleDataService = sampleDataServiceInstance;
 }
Example #32
0
 public GridController(ILogger <GridController> logger, ISampleDataService sampleDataService)
 {
     _logger            = logger;
     _sampleDataService = sampleDataService;
 }
 public SampleDataController(ISampleDataService sampleDataService)
 {
     _sampleDataService = sampleDataService;
 }
Example #34
0
 public AddPatient(ILogger <AddPatient> logger, ISampleDataService sampleDataService)
 {
     _logger            = logger;
     _sampleDataService = sampleDataService;
 }