示例#1
0
 /// <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>();
 }
示例#2
0
		/// <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>();
		}