FileDialogIconGetterArgs.cs 871 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System.IO.Abstractions;
  2. namespace Terminal.Gui {
  3. /// <summary>
  4. /// Arguments for the <see cref="FileDialogStyle.IconGetter"/> delegate
  5. /// </summary>
  6. public class FileDialogIconGetterArgs {
  7. /// <summary>
  8. /// Creates a new instance of the class
  9. /// </summary>
  10. public FileDialogIconGetterArgs (FileDialog fileDialog, IFileSystemInfo file, FileDialogIconGetterContext context)
  11. {
  12. FileDialog = fileDialog;
  13. File = file;
  14. Context = context;
  15. }
  16. /// <summary>
  17. /// Gets the dialog that requires the icon.
  18. /// </summary>
  19. public FileDialog FileDialog { get; }
  20. /// <summary>
  21. /// Gets the file/folder for which the icon is required.
  22. /// </summary>
  23. public IFileSystemInfo File { get; }
  24. /// <summary>
  25. /// Gets the context in which the icon will be used in.
  26. /// </summary>
  27. public FileDialogIconGetterContext Context { get; }
  28. }
  29. }