Beispiel #1
0
 public PaymentVM(INavigation nav, MEstate estate, int months)
 {
     this.Navigation = nav;
     this.months     = months;
     this.totalPrice = estate.Price * months;
     SubmitCommand   = new Command(async() => await RentEstate());
 }
 public EstateDetailPage(MEstate estate)
 {
     InitializeComponent();
     est            = estate;
     BindingContext = model = new EstateDetailsVM()
     {
         Estate = estate
     };
 }
Beispiel #3
0
 public RentedEstateDetailPage(MEstate estate)
 {
     est = estate;
     InitializeComponent();
     BindingContext = model = new RentedEstateDetailVM()
     {
         Estate = estate
     };
 }
        public PaymentPage(MEstate estate, int months)
        {
            _months = months;
            InitializeComponent();
            var nav = new NavigationPage(new MyEstatesPage());

            navigation     = nav.Navigation;
            BindingContext = model = new PaymentVM(navigation, estate, months)
            {
                Estate = estate,
                months = months
            };
        }
Beispiel #5
0
        public async Task Init(MEstate estate)
        {
            var request = new PictureSearchRequest()
            {
                EstateId = estate.EstateId
            };
            var pictures = await pictureService.Get <List <MPicture> >(request);

            foreach (var p in pictures)
            {
                pictureList.Add(p);
            }
        }
Beispiel #6
0
 public EstateGalleryPage(MEstate estate)
 {
     e = estate;
     InitializeComponent();
     BindingContext = model = new EstateGalleryVM(estate);
 }
Beispiel #7
0
 public EstateDetailsVM(MEstate estate)
 {
     Estate       = estate;
     User         = Estate.User;
     EmailCommand = new Command(async() => await ExecuteEmailCommand());
 }
 public RentedEstateDetailVM(MEstate estate)
 {
     Estate      = estate;
     InitCommand = new Command(async() => await Init());
 }
Beispiel #9
0
 public EstateGalleryVM(MEstate estate)
 {
     Estate      = estate;
     InitCommand = new Command(async() => await Init(Estate));
 }