mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-11-03 21:43:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			744 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			744 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Lantean.QBTMud.Models;
 | 
						|
using Microsoft.AspNetCore.Components;
 | 
						|
using MudBlazor;
 | 
						|
 | 
						|
namespace Lantean.QBTMud.Components.Dialogs
 | 
						|
{
 | 
						|
    public partial class DeleteDialog
 | 
						|
    {
 | 
						|
        [CascadingParameter]
 | 
						|
        private IMudDialogInstance MudDialog { get; set; } = default!;
 | 
						|
 | 
						|
        [Parameter]
 | 
						|
        public int Count { get; set; }
 | 
						|
 | 
						|
        protected bool DeleteFiles { get; set; }
 | 
						|
 | 
						|
        protected void Cancel()
 | 
						|
        {
 | 
						|
            MudDialog.Cancel();
 | 
						|
        }
 | 
						|
 | 
						|
        protected void Submit()
 | 
						|
        {
 | 
						|
            MudDialog.Close(DialogResult.Ok(DeleteFiles));
 | 
						|
        }
 | 
						|
 | 
						|
        protected override Task Submit(KeyboardEvent keyboardEvent)
 | 
						|
        {
 | 
						|
            Submit();
 | 
						|
 | 
						|
            return Task.CompletedTask;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |