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 }; }
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 }; }
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); } }
public EstateGalleryPage(MEstate estate) { e = estate; InitializeComponent(); BindingContext = model = new EstateGalleryVM(estate); }
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()); }
public EstateGalleryVM(MEstate estate) { Estate = estate; InitCommand = new Command(async() => await Init(Estate)); }