FilesSelectedEventArgs.cs 850 B

123456789101112131415161718192021
  1. namespace Terminal.Gui;
  2. /// <summary>Event args for the <see cref="FileDialog.FilesSelected"/> event</summary>
  3. public class FilesSelectedEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of the <see cref="FilesSelectedEventArgs"/></summary>
  6. /// <param name="dialog"></param>
  7. public FilesSelectedEventArgs (FileDialog dialog) { Dialog = dialog; }
  8. /// <summary>
  9. /// Set to true if you want to prevent the selection 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"/> and/or
  15. /// <see cref="FileDialog.MultiSelected"/> to evaluate the users choice.
  16. /// </summary>
  17. public FileDialog Dialog { get; }
  18. }