LoaderDetectionControl.xaml.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using CyberX8_Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.RegularExpressions;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace CyberX8_Themes.UserControls
  18. {
  19. /// <summary>
  20. /// LoaderDetectionControl.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class LoaderDetectionControl : UserControl
  23. {
  24. #region 属性
  25. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  26. "ModuleName", typeof(string), typeof(LoaderDetectionControl),
  27. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  28. /// <summary>
  29. /// 模块名称
  30. /// </summary>
  31. public string ModuleName
  32. {
  33. get
  34. {
  35. return (string)this.GetValue(ModuleNameProperty);
  36. }
  37. set
  38. {
  39. this.SetValue(ModuleNameProperty, value);
  40. }
  41. }
  42. public static readonly DependencyProperty ModuleTitleProperty = DependencyProperty.Register(
  43. "ModuleTitle", typeof(string), typeof(LoaderDetectionControl),
  44. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  45. /// <summary>
  46. /// 标题
  47. /// </summary>
  48. public string ModuleTitle
  49. {
  50. get
  51. {
  52. return (string)this.GetValue(ModuleTitleProperty);
  53. }
  54. set
  55. {
  56. this.SetValue(ModuleTitleProperty, value);
  57. }
  58. }
  59. public static readonly DependencyProperty StatusProperty = DependencyProperty.Register("Status", typeof(string), typeof(LoaderDetectionControl),
  60. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  61. /// <summary>
  62. /// 状态
  63. /// </summary>
  64. public string Status
  65. {
  66. get
  67. {
  68. return (string)this.GetValue(StatusProperty);
  69. }
  70. set
  71. {
  72. this.SetValue(StatusProperty, value);
  73. }
  74. }
  75. public static readonly DependencyProperty CameraTriggerProperty = DependencyProperty.Register("CameraTrigger", typeof(bool), typeof(LoaderDetectionControl),
  76. new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  77. /// <summary>
  78. /// CameraTrigger
  79. /// </summary>
  80. public bool CameraTrigger
  81. {
  82. get
  83. {
  84. return (bool)this.GetValue(CameraTriggerProperty);
  85. }
  86. set
  87. {
  88. this.SetValue(CameraTriggerProperty, value);
  89. }
  90. }
  91. public static readonly DependencyProperty PlateOutDetectedProperty = DependencyProperty.Register("PlateOutDetected", typeof(bool), typeof(LoaderDetectionControl),
  92. new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  93. /// <summary>
  94. /// PlateOutDetected
  95. /// </summary>
  96. public bool PlateOutDetected
  97. {
  98. get
  99. {
  100. return (bool)this.GetValue(PlateOutDetectedProperty);
  101. }
  102. set
  103. {
  104. this.SetValue(PlateOutDetectedProperty, value);
  105. }
  106. }
  107. public static readonly DependencyProperty PlateOutNotDetectedProperty = DependencyProperty.Register("PlateOutNotDetected", typeof(bool), typeof(LoaderDetectionControl),
  108. new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  109. /// <summary>
  110. /// PlateOutNotDetected
  111. /// </summary>
  112. public bool PlateOutNotDetected
  113. {
  114. get
  115. {
  116. return (bool)this.GetValue(PlateOutNotDetectedProperty);
  117. }
  118. set
  119. {
  120. this.SetValue(PlateOutNotDetectedProperty, value);
  121. }
  122. }
  123. public static readonly DependencyProperty VisionSystemOnlineProperty = DependencyProperty.Register("VisionSystemOnline", typeof(bool), typeof(LoaderDetectionControl),
  124. new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  125. /// <summary>
  126. /// VisionSystemOnline
  127. /// </summary>
  128. public bool VisionSystemOnline
  129. {
  130. get
  131. {
  132. return (bool)this.GetValue(VisionSystemOnlineProperty);
  133. }
  134. set
  135. {
  136. this.SetValue(VisionSystemOnlineProperty, value);
  137. }
  138. }
  139. #endregion
  140. /// <summary>
  141. /// 构造函数
  142. /// </summary>
  143. public LoaderDetectionControl()
  144. {
  145. InitializeComponent();
  146. }
  147. private void RunPlateOut_Click(object sender, RoutedEventArgs e)
  148. {
  149. }
  150. }
  151. }