コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TravelTimeResultViewModel"/> class.
        /// </summary>
        public TravelTimeResultViewModel(INavigationService navigationService, IHoustonTranstarService houstonTranstarService)
            : base(navigationService)
        {
            this._houstonTranstarService = houstonTranstarService;
            this._dataRetrievalErrorInteractionRequest = new InteractionReq.InteractionRequest<InteractionReq.Notification>();

            this.IsBeingActivated();
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConstructionClosureViewModel"/> class.
        /// </summary>
        public ConstructionClosureViewModel(INavigationService navigationService, IDfwTranstarService dallasTranstarService)
            : base(navigationService)
        {
            this._dallasTranstarService = dallasTranstarService;
            this._dataRetrievalErrorInteractionRequest = new InteractionReq.InteractionRequest<InteractionReq.Notification>();

            this.IsBeingActivated();
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MessageSignViewModel"/> class.
        /// </summary>
        public MessageSignViewModel(INavigationService navigationService, IDfwTranstarService dallasTranstarService)
            : base(navigationService)
        {
            this._dallasTranstarService = dallasTranstarService;
            this._dataRetrievalErrorInteractionRequest = new InteractionReq.InteractionRequest<InteractionReq.Notification>();
            this.Locations = new ObservableCollection<Roadway>();
            this.ViewMessageSignCommand = new DelegateCommand(this.ViewMessageSign, () => this.CanViewMessageSign);

            this.IsBeingActivated();
        }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CameraListViewModel"/> class.
        /// </summary>
        public CameraListViewModel(INavigationService navigationService, IHoustonTranstarService houstonTranstarService)
            : base(navigationService)
        {
            this._houstonTranstarService = houstonTranstarService;
            this._dataRetrievalErrorInteractionRequest = new InteractionReq.InteractionRequest<InteractionReq.Notification>();

            this.Cameras = new ObservableCollection<Camera>();
            this.SelectCameraCommand = new DelegateCommand<Camera>(this.SelectCamera);

            this.IsBeingActivated();
        }
コード例 #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TravelTimeViewModel"/> class.
        /// </summary>
        public TravelTimeViewModel(INavigationService navigationService, IDfwTranstarService dallasTranstarService)
            : base(navigationService)
        {
            this._dallasTranstarService = dallasTranstarService;
            this._dataRetrievalErrorInteractionRequest = new InteractionReq.InteractionRequest<InteractionReq.Notification>();
            this.TravelTimeRoadways = new ObservableCollection<Roadway>();
            this.TravelTimeOrigins = new ObservableCollection<Roadway>();
            this.TravelTimeDestinations = new ObservableCollection<Roadway>();
            this.GetTravelTimeCommand = new DelegateCommand(this.GetTravelTime, () => this.CanGetTravelTime);

            this.IsBeingActivated();
        }
コード例 #6
0
ファイル: MainViewModel.cs プロジェクト: fnguyen/DFWCommute
        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        public MainViewModel(INavigationService navigationService, IHoustonTranstarService houstonTranstarService)
            : base(navigationService)
        {
            this._houstonTranstarService = houstonTranstarService;
            this._dataRetrievalErrorInteractionRequest = new InteractionReq.InteractionRequest<InteractionReq.Notification>();

            this.Incidents = new ObservableCollection<Incident>();
            this.TravelTimeRoadways = new ObservableCollection<Roadway>();
            this.CameraTypes = new ObservableCollection<string>();
            this.ConstructionClosures = new ObservableCollection<Roadway>();
            this.MessageSigns = new ObservableCollection<Roadway>();

            this.SelectTravelTimeRoadwayCommand = new DelegateCommand<Roadway>(this.SelectTravelTimeRoadway);
            this.SelectCameraTypeCommand = new DelegateCommand<string>(this.SelectCameraType);
            this.SelectConstructionClosureCommand = new DelegateCommand<Roadway>(this.SelectConstructionClosure);
            this.SelectMessageSignCommand = new DelegateCommand<Roadway>(this.SelectMessageSign);

            this.RefreshCommand = new DelegateCommand(this.RefreshData, () => this.CanRefreshData);
            this.ViewAppSettingsCommand = new DelegateCommand(this.ViewAppSettings);

            this.IsBeingActivated();
        }