NewMailEventArgs.cs 563 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace EventDemo
  5. {
  6. /// <summary>
  7. /// 定义一个附加信息类,用来通知接收者发生了什么。 即 事件本身
  8. /// </summary>
  9. public class NewMailEventArgs :EventArgs
  10. {
  11. public string From { get; }
  12. public string To { get; }
  13. public string Content { get; }
  14. public NewMailEventArgs(string from, string to, string content)
  15. {
  16. From = from;
  17. To = to;
  18. Content = content;
  19. }
  20. }
  21. }