IndexEventArgs.cs 625 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SmartCoalApplication.Core
  7. {
  8. /// <summary>
  9. /// Declares an EventArgs type for an event that needs a single integer, interpreted
  10. /// as an index, as event information.
  11. /// </summary>
  12. public sealed class IndexEventArgs
  13. : EventArgs
  14. {
  15. int index;
  16. public int Index
  17. {
  18. get
  19. {
  20. return index;
  21. }
  22. }
  23. public IndexEventArgs(int i)
  24. {
  25. this.index = i;
  26. }
  27. }
  28. }