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");
        }
        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");
        }
        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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 5
0
 public MainPageVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
 public AViewModel(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : this(busServiceModel, appDataModel, null)
 {
 }
Ejemplo n.º 7
0
 public RouteDetailsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
Ejemplo n.º 8
0
 public StopsMapVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
 public SettingsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
 }
Ejemplo n.º 10
0
 public StopsMapVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
Ejemplo n.º 11
0
 public AViewModel(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : this(busServiceModel, appDataModel, null)
 {
 }
 public RouteDetailsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
Ejemplo n.º 13
0
 public MainPageVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
     Initialize();
 }
Ejemplo n.º 14
0
 public SettingsVM(IBusServiceModel busServiceModel, IAppDataModel appDataModel)
     : base(busServiceModel, appDataModel)
 {
 }