using CyberX8_Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace CyberX8_Themes.UserControls { /// /// LoaderDetectionControl.xaml 的交互逻辑 /// public partial class LoaderDetectionControl : UserControl { #region 属性 public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register( "ModuleName", typeof(string), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 模块名称 /// public string ModuleName { get { return (string)this.GetValue(ModuleNameProperty); } set { this.SetValue(ModuleNameProperty, value); } } public static readonly DependencyProperty ModuleTitleProperty = DependencyProperty.Register( "ModuleTitle", typeof(string), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 标题 /// public string ModuleTitle { get { return (string)this.GetValue(ModuleTitleProperty); } set { this.SetValue(ModuleTitleProperty, value); } } public static readonly DependencyProperty StatusProperty = DependencyProperty.Register("Status", typeof(string), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 状态 /// public string Status { get { return (string)this.GetValue(StatusProperty); } set { this.SetValue(StatusProperty, value); } } public static readonly DependencyProperty CameraTriggerProperty = DependencyProperty.Register("CameraTrigger", typeof(bool), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// CameraTrigger /// public bool CameraTrigger { get { return (bool)this.GetValue(CameraTriggerProperty); } set { this.SetValue(CameraTriggerProperty, value); } } public static readonly DependencyProperty PlateOutDetectedProperty = DependencyProperty.Register("PlateOutDetected", typeof(bool), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// PlateOutDetected /// public bool PlateOutDetected { get { return (bool)this.GetValue(PlateOutDetectedProperty); } set { this.SetValue(PlateOutDetectedProperty, value); } } public static readonly DependencyProperty PlateOutNotDetectedProperty = DependencyProperty.Register("PlateOutNotDetected", typeof(bool), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// PlateOutNotDetected /// public bool PlateOutNotDetected { get { return (bool)this.GetValue(PlateOutNotDetectedProperty); } set { this.SetValue(PlateOutNotDetectedProperty, value); } } public static readonly DependencyProperty VisionSystemOnlineProperty = DependencyProperty.Register("VisionSystemOnline", typeof(bool), typeof(LoaderDetectionControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// VisionSystemOnline /// public bool VisionSystemOnline { get { return (bool)this.GetValue(VisionSystemOnlineProperty); } set { this.SetValue(VisionSystemOnlineProperty, value); } } #endregion /// /// 构造函数 /// public LoaderDetectionControl() { InitializeComponent(); } private void RunPlateOut_Click(object sender, RoutedEventArgs e) { } } }