Пример #1
0
        protected MunicplBaseViewModel(string id, string title, INavigationService navigationService = null, INextbusDataService nextbusDataService = null)
        {
            Id = id;
            Title = title;

            NavigationService = navigationService ?? SimpleIoc.Default.GetInstance<INavigationService>();
            NextbusDataService = nextbusDataService ?? SimpleIoc.Default.GetInstance<INextbusDataService>();
        }
Пример #2
0
        protected MunicplBaseViewModel(string id, string title, INavigationService navigationService = null, INextbusDataService nextbusDataService = null)
        {
            Id    = id;
            Title = title;

            NavigationService  = navigationService ?? SimpleIoc.Default.GetInstance <INavigationService>();
            NextbusDataService = nextbusDataService ?? SimpleIoc.Default.GetInstance <INextbusDataService>();
        }
Пример #3
0
        public MainViewModel(INextbusDataService nextbusDataService, INavigationService navigationService)
            : base("main", "Municpl", navigationService)
        {
            _nextbusDataService = nextbusDataService;

            Favorites = new FavoritesListViewModel();
            Agencies = new AgencyListViewModel();
            Agencies.Initialize(null);
        }
Пример #4
0
        public MainViewModel(INextbusDataService nextbusDataService, INavigationService navigationService)
            : base("main", "Municpl", navigationService)
        {
            _nextbusDataService = nextbusDataService;

            Favorites = new FavoritesListViewModel();
            Agencies  = new AgencyListViewModel();
            Agencies.Initialize(null);
        }
 protected MunicplBaseListViewModel(string id, string title, INavigationService navigationService = null, INextbusDataService nextbusDataService = null)
     : base(id, title, navigationService, nextbusDataService)
 {
     Items = new ObservableCollection <T>();
 }