From a53bfc0c6111a0fb1860f44d66da86d9b855f915 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 6 Nov 2016 21:40:24 +0100 Subject: [PATCH 1/5] corrige le label du bouton --- BookAStar/BookAStar/Pages/EditBillingLinePage.xaml | 14 ++++++++------ .../BookAStar/Pages/EditBillingLinePage.xaml.cs | 5 ++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml index 6ce717aa..624909f4 100644 --- a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml +++ b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml @@ -39,9 +39,9 @@ - + - + @@ -93,12 +93,14 @@ Path=IsValid, Converter={StaticResource boolToStyleImage}}" /> - + Clicked="OnDeleteClicked"> - - + + + diff --git a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs index 779d189e..0667afe1 100644 --- a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs +++ b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs @@ -16,7 +16,10 @@ namespace BookAStar.Pages picker.Items.Add(du); BindingContext = model; } - + public void OnDeleteClicked(object sender, EventArgs e) + { + throw new NotImplementedException(); + } public void OnValidateClicked (object sender, EventArgs e) { this.Navigation.PopAsync(); From c1fb8a9c486540a3831a66463e0cce478e5d69a8 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 10 Nov 2016 12:26:55 +0100 Subject: [PATCH 2/5] Fixes a bug case --- BookAStar/BookAStar/ViewModels/EditEstimateViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BookAStar/BookAStar/ViewModels/EditEstimateViewModel.cs b/BookAStar/BookAStar/ViewModels/EditEstimateViewModel.cs index cef7746a..521851b9 100644 --- a/BookAStar/BookAStar/ViewModels/EditEstimateViewModel.cs +++ b/BookAStar/BookAStar/ViewModels/EditEstimateViewModel.cs @@ -31,7 +31,7 @@ namespace BookAStar.ViewModels private void Bill_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { - Data.Bill = Bill; + Data.Bill = new List( Bill ); NotifyPropertyChanged("FormattedTotal"); } private Estimate data; From 19bd9ddb8e86c7ffe316c20e63dd86195cc0b81a Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 10 Nov 2016 12:28:09 +0100 Subject: [PATCH 3/5] Should fix the Json deserialization --- BookAStar/BookAStar/Interfaces/IEstimate.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BookAStar/BookAStar/Interfaces/IEstimate.cs b/BookAStar/BookAStar/Interfaces/IEstimate.cs index 6a21f114..ebe25cd1 100644 --- a/BookAStar/BookAStar/Interfaces/IEstimate.cs +++ b/BookAStar/BookAStar/Interfaces/IEstimate.cs @@ -5,9 +5,9 @@ namespace BookAStar.Model.Interfaces { public interface IEstimate { - IList AttachedFiles { get; set; } - IList AttachedGraphics { get; } - IList Bill { get; set; } + List AttachedFiles { get; set; } + List AttachedGraphics { get; } + List Bill { get; set; } string ClientId { get; set; } long? CommandId { get; set; } string CommandType { get; set; } From 60069a0b834ac6b0f616216ef7126e101a75b314 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 10 Nov 2016 12:28:56 +0100 Subject: [PATCH 4/5] Fixes latest commit --- BookAStar/BookAStar/Model/Workflow/Estimate.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BookAStar/BookAStar/Model/Workflow/Estimate.cs b/BookAStar/BookAStar/Model/Workflow/Estimate.cs index a2cb664e..c0c269a7 100644 --- a/BookAStar/BookAStar/Model/Workflow/Estimate.cs +++ b/BookAStar/BookAStar/Model/Workflow/Estimate.cs @@ -15,7 +15,7 @@ namespace BookAStar.Model.Workflow // Markdown expected public string Description { get; set; } public string Title { get; set; } - public IList Bill { get; set; } + public List Bill { get; set; } /// /// List of attached graphic files /// to this estimate, as relative pathes to @@ -23,7 +23,7 @@ namespace BookAStar.Model.Workflow /// In db, they are separated by : /// /// - public IList AttachedGraphics { get; set; } + public List AttachedGraphics { get; set; } [JsonIgnore] public string AttachedGraphicsString { @@ -37,7 +37,7 @@ namespace BookAStar.Model.Workflow /// In db, they are separated by : /// /// - public IList AttachedFiles { get; set; } + public List AttachedFiles { get; set; } [JsonIgnore] public string AttachedFilesString { From 1f6f061be334c967cd705bc4f9c4956b3a9520c7 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 10 Nov 2016 12:29:14 +0100 Subject: [PATCH 5/5] Debug message --- BookAStar/BookAStar/Data/RemoteEntity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BookAStar/BookAStar/Data/RemoteEntity.cs b/BookAStar/BookAStar/Data/RemoteEntity.cs index 3a8119ed..666f594e 100644 --- a/BookAStar/BookAStar/Data/RemoteEntity.cs +++ b/BookAStar/BookAStar/Data/RemoteEntity.cs @@ -137,7 +137,7 @@ namespace BookAStar.Data { // TODO throw custom exception, and catch to inform user var errcontent = await response.Content.ReadAsStringAsync(); - Debug.WriteLine($"Create failed posting {stringContent} @ {controllerUri.AbsoluteUri}"); + Debug.WriteLine($"Create failed posting {stringContent} @ {controllerUri.AbsoluteUri}: {errcontent}"); } else {