Wafer.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using OpenSEMI.Ctrlib.Types;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace OpenSEMI.Ctrlib.Controls
  17. {
  18. public class Wafer : Control
  19. {
  20. static Wafer()
  21. {
  22. DefaultStyleKeyProperty.OverrideMetadata(typeof(Wafer), new FrameworkPropertyMetadata(typeof(Wafer)));
  23. }
  24. #region ViewType (DependencyProperty)Front/Top
  25. public string ViewType
  26. {
  27. get { return (string)GetValue(ViewTypeProperty); }
  28. set { SetValue(ViewTypeProperty, value); }
  29. }
  30. public static readonly DependencyProperty ViewTypeProperty =
  31. DependencyProperty.Register("ViewType", typeof(string), typeof(Wafer),
  32. new UIPropertyMetadata("Front"));
  33. #endregion
  34. #region int (DependencyProperty)
  35. /// <summary>
  36. /// refer to enum WaferStatus in CommonEnums.cs
  37. /// </summary>
  38. public int WaferStatus
  39. {
  40. get { return (int)GetValue(WaferStatusProperty); }
  41. set { SetValue(WaferStatusProperty, value); }
  42. }
  43. public static readonly DependencyProperty WaferStatusProperty =
  44. DependencyProperty.Register("WaferStatus", typeof(int), typeof(Wafer),
  45. new UIPropertyMetadata(0));
  46. #endregion
  47. #region SlotID (DependencyProperty)
  48. public int SlotID
  49. {
  50. get { return (int)GetValue(SlotIDProperty); }
  51. set { SetValue(SlotIDProperty, value); }
  52. }
  53. public static readonly DependencyProperty SlotIDProperty =
  54. DependencyProperty.Register("SlotID", typeof(int), typeof(Wafer),
  55. new UIPropertyMetadata(0));
  56. #endregion
  57. #region ModuleID (DependencyProperty)
  58. public string ModuleID
  59. {
  60. get { return (string)GetValue(ModuleIDProperty); }
  61. set { SetValue(ModuleIDProperty, value); }
  62. }
  63. public static readonly DependencyProperty ModuleIDProperty =
  64. DependencyProperty.Register("ModuleID", typeof(string), typeof(Wafer), new UIPropertyMetadata(string.Empty));
  65. #endregion
  66. #region WaferTooltip (DependencyProperty)
  67. public string WaferTooltip
  68. {
  69. get { return (string)GetValue(WaferTooltipProperty); }
  70. set { SetValue(WaferTooltipProperty, value); }
  71. }
  72. public static readonly DependencyProperty WaferTooltipProperty =
  73. DependencyProperty.Register("WaferTooltip", typeof(string), typeof(Wafer), new PropertyMetadata(string.Empty));
  74. #endregion
  75. #region WaferTooltipExt (DependencyProperty)
  76. public string WaferTooltipExt
  77. {
  78. get { return (string)GetValue(WaferTooltipExtProperty); }
  79. set { SetValue(WaferTooltipExtProperty, value); }
  80. }
  81. public static readonly DependencyProperty WaferTooltipExtProperty =
  82. DependencyProperty.Register("WaferTooltipExt", typeof(string), typeof(Wafer), new PropertyMetadata(string.Empty));
  83. #endregion
  84. #region SourceName (DependencyProperty)
  85. public string SourceName
  86. {
  87. get { return (string)GetValue(SourceNameProperty); }
  88. set { SetValue(SourceNameProperty, value); }
  89. }
  90. public static readonly DependencyProperty SourceNameProperty =
  91. DependencyProperty.Register("SourceName", typeof(string), typeof(Wafer), new UIPropertyMetadata(string.Empty));
  92. #endregion
  93. #region VisiblilityDuplicated (DependencyProperty)
  94. public Visibility DuplicatedVisibility
  95. {
  96. get { return (Visibility)GetValue(DuplicatedVisibilityProperty); }
  97. set { SetValue(DuplicatedVisibilityProperty, value); }
  98. }
  99. public static readonly DependencyProperty DuplicatedVisibilityProperty =
  100. DependencyProperty.Register("DuplicatedVisibility", typeof(Visibility), typeof(Wafer), new UIPropertyMetadata(Visibility.Collapsed));
  101. #endregion
  102. }
  103. }