Esempio n. 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
     };
 }
Esempio n. 3
0
 public RentedEstateDetailPage(MEstate estate)
 {
     est = estate;
     InitializeComponent();
     BindingContext = model = new RentedEstateDetailVM()
     {
         Estate = estate
     };
 }
Esempio n. 4
0
        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
            };
        }
Esempio n. 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);
            }
        }
Esempio n. 6
0
 public EstateGalleryPage(MEstate estate)
 {
     e = estate;
     InitializeComponent();
     BindingContext = model = new EstateGalleryVM(estate);
 }
Esempio n. 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());
 }
Esempio n. 9
0
 public EstateGalleryVM(MEstate estate)
 {
     Estate      = estate;
     InitCommand = new Command(async() => await Init(Estate));
 }