Some checks failed
		
		
	
	Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
				
			- Modify planned payment - minor bug fixes
		
			
				
	
	
		
			29 lines
		
	
	
		
			774 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			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
 | |
|     }
 | |
| } |