示例#1
0
        public HistoryViewModel()
        {
            this.offersProxy      = new OffersProxy();
            this.offerInfoesProxy = new OfferInfoesProxy();
            this.placesProxy      = new PlacesProxy();
            this.addressesProxy   = new AddressesProxy();
            this.usersProxy       = new UsersProxy();

            CurrentOffersList           = null;
            (App.Current as App).Login += (x, e) => { CurrentOffersList = null; OnPropertyChanged(nameof(CurrentOffersList)); };
        }
        public OffersViewModel()
        {
            RemoveCommand = new DelegateCommand(async x => await RemoveAsync());
            EditCommand   = new DelegateCommand(x => Edit());

            this.offersProxy      = new OffersProxy();
            this.offerInfoesProxy = new OfferInfoesProxy();
            this.PlacesProxy      = new PlacesProxy();
            this.addressesProxy   = new AddressesProxy();
            this.usersProxy       = new UsersProxy();

            CurrentOffersList           = null;
            (App.Current as App).Login += (x, e) => { CurrentOffersList = null; OnPropertyChanged(nameof(CurrentOffersList)); };
        }