FilesSelectedEventArgs.cs 875 B

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