new files, fixes recent refactorings and more
This commit is contained in:
parent
bfaa70f1a6
commit
f9bd1c2511
14 changed files with 200 additions and 130 deletions
|
|
@ -43,11 +43,19 @@ namespace BookAStar.Pages
|
|||
|
||||
protected void OnNewCommanLine(object sender, EventArgs e)
|
||||
{
|
||||
var com = new BillingLine();
|
||||
App.CurrentApp.NavigationService.NavigateTo<EditBillingLinePage>(
|
||||
var com = new BillingLine() { Count = 1, UnitaryCost = 0.01m };
|
||||
var lineView = new BillingLineViewModel(com)
|
||||
{
|
||||
ValidateCommand = new Command(() => {
|
||||
((EstimateViewModel)BindingContext).Bill.
|
||||
Add(com);
|
||||
})
|
||||
};
|
||||
|
||||
App.NavigationService.NavigateTo<EditBillingLinePage>(
|
||||
true,
|
||||
new object[] { new BillingLineViewModel(((EstimateViewModel)this.BindingContext).Data,com) } );
|
||||
new object[] { lineView } );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue