FilesSelectedEventArgs.cs 857 B

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