diff --git a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml
index 9f8ad878..dd8b4f38 100644
--- a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml
+++ b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml
@@ -63,12 +63,12 @@
-
+
-
-
diff --git a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs
index 2a1d9f3d..d3678002 100644
--- a/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs
+++ b/BookAStar/BookAStar/Pages/EditBillingLinePage.xaml.cs
@@ -1,10 +1,5 @@
using BookAStar.ViewModels;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Input;
using Xamarin.Forms;
namespace BookAStar.Pages
@@ -15,10 +10,11 @@ namespace BookAStar.Pages
{
BindingContext = model;
InitializeComponent();
- }
+ }
+
public void OnValidateClicked (object sender, EventArgs e)
{
- OnBackButtonPressed();
+ this.Navigation.PopAsync();
}
}
}
diff --git a/BookAStar/BookAStar/ViewModels/BillingLineViewModel.cs b/BookAStar/BookAStar/ViewModels/BillingLineViewModel.cs
index 61679112..102da3a8 100644
--- a/BookAStar/BookAStar/ViewModels/BillingLineViewModel.cs
+++ b/BookAStar/BookAStar/ViewModels/BillingLineViewModel.cs
@@ -58,7 +58,6 @@ namespace BookAStar.ViewModels
{
SetProperty(ref unitaryCost, value, "UnitaryCost");
data.UnitaryCost = value;
- UnitaryCostText = value.ToString(unitCostFormat, CultureInfo.InvariantCulture);
}
}
protected int durationValue;
@@ -107,20 +106,9 @@ namespace BookAStar.ViewModels
set
{
- if (unitaryCostText != value)
- {
- try
- {
- data.UnitaryCost = decimal.Parse(value, CultureInfo.InvariantCulture);
- }
- catch (Exception)
- {
- // TODO Error model
- // UI should shoud entry as wearing a wrong value
- // thanks to its `Behaviors`
- }
- }
SetProperty(ref unitaryCostText, value, "UnitaryCostText");
+ // TODO update behavior
+
}
}
bool invalidCost;
diff --git a/BookAStar/BookAStar/Views/CommandLineEditor.xaml.cs b/BookAStar/BookAStar/Views/CommandLineEditor.xaml.cs
new file mode 100644
index 00000000..08443e3a
--- /dev/null
+++ b/BookAStar/BookAStar/Views/CommandLineEditor.xaml.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Xamarin.Forms;
+
+namespace BookAStar.Views
+{
+ public partial class CommandLineEditor : ContentView
+ {
+ public CommandLineEditor()
+ {
+ InitializeComponent();
+
+ }
+ }
+}