From 5ab7eab780fcac31d33ae1daa924fc4d88e6db61 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 3 Oct 2016 18:37:42 +0200 Subject: [PATCH] fixes the line edtion action --- BookAStar/BookAStar/Pages/EditEstimatePage.xaml.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BookAStar/BookAStar/Pages/EditEstimatePage.xaml.cs b/BookAStar/BookAStar/Pages/EditEstimatePage.xaml.cs index aa4f3238..57fe8aaa 100644 --- a/BookAStar/BookAStar/Pages/EditEstimatePage.xaml.cs +++ b/BookAStar/BookAStar/Pages/EditEstimatePage.xaml.cs @@ -17,9 +17,6 @@ namespace BookAStar.Pages { public partial class EditEstimatePage : ContentPage { - public Estimate Estimate { get { return BindingContext as Estimate; } set { - BindingContext = value; - } } public EditEstimatePage(EstimateViewModel model) { @@ -46,7 +43,7 @@ namespace BookAStar.Pages var com = new BillingLine(); Resolver.Resolve().NavigateTo( true, - new object[] { new BillingLineViewModel(com) } ); + new object[] { new BillingLineViewModel((Estimate)this.BindingContext,com) } ); } }