Beispiel #1
0
 public SearchPageVm()
 {
     NavigationControl        = MainFrameSingleton.Instance;
     _searchCatalog           = new Catalog <Property>();
     propCat                  = new PropertyCatalog();
     SearchCatalog            = new Catalog <Property>();
     SearchCatalog.Collection = new ObservableCollection <Property>();
     SearchCommand            = new DelegateCommand(SearchM);
     CheckIn                  = DateTimeOffset.Now;
     CheckOut                 = DateTimeOffset.Now.AddDays(7);
 }
 public PropertiesPageVm()
 {
     TransportSingleton.Instance.CheckOut = new DateTimeOffset(DateTime.Now.AddDays(-20));
     TransportSingleton.Instance.CheckIn  = TransportSingleton.Instance.CheckOut;
     IsPaneOpen           = true;
     PropertyCatalog      = new PropertyCatalog();
     SelectedIndex        = 0;
     SelectedImageIndex   = 0;
     SelectedStringValues = new ObservableCollection <StringValue>(PropertyCatalog.Collection[SelectedIndex].ImagePaths.Select(p => new StringValue(p)).ToList());
     OpenPane             = new DelegateCommand(OpenPaneM);
     NavigationControl    = MainFrameSingleton.Instance;
     SelectedProperty     = PropertyCatalog.Collection[0];
 }