Beispiel #1
0
 public static SearchRoute getInstance()
 {
     if (instance == null)
     {
         instance = new SearchRoute();
     }
     return(instance);
 }
 public MainPage()
 {
     //Create the layout for GUI
     this.InitializeComponent();
     //this.NavigationCacheMode = NavigationCacheMode.Required;
     //Create an object of SearchRoute class
     BusRouteGuider.ViewModel.SearchRoute processor = new ViewModel.SearchRoute();
     //Get thr dictionary of Location objects
     dic = processor.getAllLocations();
     //Get the dictionary of Route objects
     routes = processor.getAllRoutes();
 }
 public MainPage()
 {
     //Create the layout for GUI
     this.InitializeComponent();
     this.NavigationCacheMode = NavigationCacheMode.Required;
     //Create an object of SearchRoute class
     BusRouteGuider.ViewModel.SearchRoute processor = new ViewModel.SearchRoute();
     //Get the dictionary of Location objects
     dic = processor.getAllLocations();
     //Get the dictionary of Route objects
     routes = processor.getAllRoutes();
 }
 public static SearchRoute getInstance(){
     if(instance == null) {
      instance = new SearchRoute();
     }
     return instance;
 }