예제 #1
0
 public RecentSearch(SearchItemBase searchItem, int resultsCount, PropertyFinderViewModel parent)
 {
     Search       = searchItem;
     ResultsCount = resultsCount;
     Parent       = parent;
 }
예제 #2
0
 public RecentSearch(SearchItemBase searchItem, int resultsCount, PropertyFinderViewModel parent)
 {
     Search = searchItem;
       ResultsCount = resultsCount;
       Parent = parent;
 }
예제 #3
0
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            var source = new PropertyDataSource(new JsonWebPropertySearch());
              var geolocationService = new GeoLocationService();

              var statePersistence = new StatePersistenceService();
              PropertyFinderPersistentState state = statePersistence.LoadState();

              var viewModel = new PropertyFinderViewModel(state, source,
            new NavigationService(null), geolocationService);

              RootFrame.DataContext = viewModel;
        }