Version 1.0.3
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
- Modify planned payment - minor bug fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using WheresMyMoney.Maui.Core;
|
||||
|
||||
namespace WheresMyMoney.Maui;
|
||||
@@ -13,7 +13,8 @@ public partial class AddPlannedPaymentPage : ContentPage
|
||||
|
||||
private async void Add_OnClicked(object? sender, EventArgs e)
|
||||
{
|
||||
if (!decimal.TryParse(AmountEntry.Text, out decimal amount)) return;
|
||||
if (!decimal.TryParse(AmountEntry.Text, NumberStyles.Currency, CultureInfo.CurrentCulture,
|
||||
out var amount)) return;
|
||||
var isSubscription = SubscriptionSwitch.IsToggled;
|
||||
var every = -1;
|
||||
var reoccurenceType = (ReoccurenceType)RepeatPicker.SelectedIndex;
|
||||
@@ -44,6 +45,6 @@ public partial class AddPlannedPaymentPage : ContentPage
|
||||
|
||||
private void EveryEntry_OnCompleted(object? sender, EventArgs e)
|
||||
{
|
||||
AmountEntry.Focus();
|
||||
this.AmountEntry.Focus();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user