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:
29
WheresMyMoney.Maui/PlannedPlannedPopup.xaml.cs
Normal file
29
WheresMyMoney.Maui/PlannedPlannedPopup.xaml.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace WheresMyMoney.Maui;
|
||||
|
||||
public partial class PlannedPlannedPopup : Popup
|
||||
{
|
||||
public PlannedPlannedPopup()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void ModifyPlannedPayment_OnClicked(object? sender, EventArgs e)
|
||||
{
|
||||
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(5));
|
||||
await CloseAsync(PlannedPaymentPopupChoice.Modify, cts.Token);
|
||||
}
|
||||
|
||||
private async void RemovePlannedPayment_OnClicked(object? sender, EventArgs e)
|
||||
{
|
||||
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(5));
|
||||
await CloseAsync(PlannedPaymentPopupChoice.Remove, cts.Token);
|
||||
}
|
||||
|
||||
public enum PlannedPaymentPopupChoice
|
||||
{
|
||||
Modify,
|
||||
Remove
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user