IndexEventArgs.cs 506 B

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