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>(); }
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>(); }
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>(); }