QueryReceivedEventArgs.cs 757 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace WinSCP
  4. {
  5. [Guid("1C2C3740-CB42-4B10-B240-2EF64E03DAA3")]
  6. [ClassInterface(Constants.ClassInterface)]
  7. [ComVisible(true)]
  8. public sealed class QueryReceivedEventArgs : EventArgs
  9. {
  10. public string Message { get; internal set; }
  11. internal enum Action { None, Abort, Continue }
  12. internal Action SelectedAction { get; set; }
  13. internal QueryReceivedEventArgs()
  14. {
  15. SelectedAction = Action.None;
  16. }
  17. public void Abort()
  18. {
  19. SelectedAction = Action.Abort;
  20. }
  21. public void Continue()
  22. {
  23. SelectedAction = Action.Continue;
  24. }
  25. }
  26. }