TszButtonData.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using SAGA.DotNetUtils;
  2. using SAGA.RevitMenu.Configuration;
  3. namespace TSZ.RevitMenu.Configuration
  4. {
  5. using System;
  6. using System.Runtime.CompilerServices;
  7. public class TszButtonData
  8. {
  9. public TszButtonData(string menuTab)
  10. {
  11. this.MenuTab = menuTab;
  12. }
  13. public TszButtonData(TszPanelData penelData, string menuTab, string strButtonName, string strButtonText, string strImageName, string strAssemblyName, string strClassName)
  14. {
  15. this.TszPanelData = penelData;
  16. this.MenuTab = menuTab;
  17. this.ButtonName = strButtonName;
  18. this.ButtonText = strButtonText;
  19. this.ImageName = strImageName;
  20. this.AssemblyName = strAssemblyName;
  21. this.ClassName = strClassName;
  22. this.IsGroup = false;
  23. this.Visible = true;
  24. }
  25. public string AssemblyName { get; set; }
  26. public string ButtonName { get; set; }
  27. public string ButtonText { get; set; }
  28. public string ClassName { get; set; }
  29. public string ImageName { get; set; }
  30. public bool IsGroup { get; set; }
  31. public string LongDescription { get; set; }
  32. public string MenuTab { get; set; }
  33. public StackStyles StackStyle { get; set; }
  34. public ButtonStyles Styles { get; set; }
  35. public string ToolTip { get; set; }
  36. public TszPanelData TszPanelData { get; set; }
  37. public RevitVer UseVersion { get; set; }
  38. public bool Visible { get; set; }
  39. }
  40. }