CommandInfo.cs 860 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. 
  2. using System;
  3. using System.Windows.Input;
  4. namespace FWindSoft.MVVM
  5. {
  6. /// <summary>
  7. /// 命令的信息类
  8. /// </summary>
  9. public struct CommandInfo
  10. {
  11. /// <summary>
  12. /// 命令的引用实例
  13. /// </summary>
  14. private ICommand m_CommandReference;
  15. /// <summary>
  16. /// 命令的引用实例
  17. /// </summary>
  18. public ICommand CommandReference
  19. {
  20. get { return m_CommandReference; }
  21. set { m_CommandReference = value; }
  22. }
  23. /// <summary>
  24. /// 命令的名字
  25. /// </summary>
  26. private String m_CommandName;
  27. /// <summary>
  28. /// 命令的名字
  29. /// </summary>
  30. public String CommandName
  31. {
  32. get { return m_CommandName; }
  33. set { m_CommandName = value; }
  34. }
  35. }
  36. }