コード例 #1
0
        public AppDataModelTests()
        {
            appDataModel = AppDataModel.Singleton;
            fakeData = FakeData.Singleton;

            fileNames = new Dictionary<FavoriteType, string>(2);
            fileNames.Add(FavoriteType.Favorite, "favorites.xml");
            fileNames.Add(FavoriteType.Recent, "recent.xml");
        }
コード例 #2
0
        public AppDataModelTests()
        {
            appDataModel = AppDataModel.Singleton;
            fakeData     = FakeData.Singleton;

            fileNames = new Dictionary <FavoriteType, string>(2);
            fileNames.Add(FavoriteType.Favorite, "favorites.xml");
            fileNames.Add(FavoriteType.Recent, "recent.xml");
        }
コード例 #3
0
        public AViewModel(IBusServiceModel busServiceModel, IAppDataModel appDataModel, ILocationModel locationModel)
        {
            this.lazyBusServiceModel = busServiceModel;
            this.lazyAppDataModel = appDataModel;

            if (!IsInDesignMode)
            {
                locationTracker = new LocationTracker();
                operationTracker = new AsyncOperationTracker();
            }

            // Set up the default action, just execute in the same thread
            UIAction = (uiAction => uiAction());

            eventsRegistered = false;
        }
コード例 #4
0
        public AViewModel(IBusServiceModel busServiceModel, IAppDataModel appDataModel, ILocationModel locationModel)
        {
            this.lazyBusServiceModel = busServiceModel;
            this.lazyAppDataModel    = appDataModel;

            if (!IsInDesignMode)
            {
                locationTracker  = new LocationTracker();
                operationTracker = new AsyncOperationTracker();
            }

            // Set up the default action, just execute in the same thread
            UIAction = (uiAction => uiAction());

            eventsRegistered = false;
        }
コード例 #5
0
 public MainPageVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
コード例 #6
0
 public AViewModel(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : this(busServiceModel, appDataModel, null)
 {
 }
コード例 #7
0
 public RouteDetailsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
コード例 #8
0
 public StopsMapVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
コード例 #9
0
 public SettingsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
 }
コード例 #10
0
 public StopsMapVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
コード例 #11
0
 public AViewModel(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : this(busServiceModel, appDataModel, null)
 {
 }
コード例 #12
0
 public RouteDetailsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
コード例 #13
0
 public MainPageVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
コード例 #14
0
 public SettingsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
 }