mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-10-30 19:43:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			856 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			856 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Lantean.QBTMud.Models;
 | |
| using Microsoft.AspNetCore.Components;
 | |
| using MudBlazor;
 | |
| 
 | |
| namespace Lantean.QBTMud.Components.Dialogs
 | |
| {
 | |
|     public partial class SubMenuDialog
 | |
|     {
 | |
|         [CascadingParameter]
 | |
|         private IMudDialogInstance MudDialog { get; set; } = default!;
 | |
| 
 | |
|         [Parameter]
 | |
|         public UIAction? ParentAction { get; set; }
 | |
| 
 | |
|         [Parameter]
 | |
|         public Dictionary<string, Torrent> Torrents { get; set; } = default!;
 | |
| 
 | |
|         [Parameter]
 | |
|         public QBitTorrentClient.Models.Preferences? Preferences { get; set; }
 | |
| 
 | |
|         [Parameter]
 | |
|         public IEnumerable<string> Hashes { get; set; } = [];
 | |
| 
 | |
|         protected Task CloseDialog()
 | |
|         {
 | |
|             MudDialog.Close();
 | |
| 
 | |
|             return Task.CompletedTask;
 | |
|         }
 | |
| 
 | |
|         protected void Cancel()
 | |
|         {
 | |
|             MudDialog.Cancel();
 | |
|         }
 | |
|     }
 | |
| } |