ItemMouseSingleClickEventArgs.cs 654 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace CustomUI.MyControls.Primitives
  6. {
  7. public class ItemMouseSingleClickEventArgs<T> : EventArgs
  8. {
  9. public ItemMouseSingleClickEventArgs() { }
  10. public T NewValue { get; private set; }
  11. public static ItemMouseSingleClickEventArgs<T> ItemSingleClick(T newValue)
  12. {
  13. return new ItemMouseSingleClickEventArgs<T>() { NewValue = newValue };
  14. }
  15. public static ItemMouseSingleClickEventArgs<T> ShowContextMenu()
  16. {
  17. return new ItemMouseSingleClickEventArgs<T>() { };
  18. }
  19. }
  20. }