FilesSelectedEventArgs.cs 866 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace Terminal.Gui {
  3. /// <summary>
  4. /// Event args for the <see cref="FileDialog.FilesSelected"/> event
  5. /// </summary>
  6. public class FilesSelectedEventArgs : EventArgs {
  7. /// <summary>
  8. /// Set to true if you want to prevent the selection
  9. /// going ahead (this will leave the <see cref="FileDialog"/>
  10. /// still showing).
  11. /// </summary>
  12. public bool Cancel { get; set; }
  13. /// <summary>
  14. /// The dialog where the choice is being made. Use <see cref="FileDialog.Path"/>
  15. /// and/or <see cref="FileDialog.MultiSelected"/> to evaluate the users choice.
  16. /// </summary>
  17. public FileDialog Dialog { get; }
  18. /// <summary>
  19. /// Creates a new instance of the <see cref="FilesSelectedEventArgs"/>
  20. /// </summary>
  21. /// <param name="dialog"></param>
  22. public FilesSelectedEventArgs (FileDialog dialog)
  23. {
  24. Dialog = dialog;
  25. }
  26. }
  27. }