WheresMyMoney/WheresMyMoney.Maui/PlannedPlannedPopup.xaml.cs
Kapitan 2d69a4b018
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
Version 1.0.3
- Modify planned payment
- minor bug fixes
2025-01-26 14:53:16 +01:00

29 lines
774 B
C#

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
}
}