/// <summary> /// Constructor: Initialise instance variables. /// </summary> public NextBuses() { this.model = new PlatformETAs(); this.cancel = new CancellationTokenSource(); // Get the Favourites view model so we can access its methods from here this.favouritesVM = ServiceLocator.Current.GetInstance <Favourites>(); }
/// <summary> /// Constructor: Initialise instance variables. /// </summary> public NextBuses () { this.model = new PlatformETAs(); this.cancel = new CancellationTokenSource(); // Get the Favourites view model so we can access its methods from here this.favouritesVM = ServiceLocator.Current.GetInstance<Favourites>(); }