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
{
    /// <summary>
    /// LoaderDetectionControl.xaml 的交互逻辑
    /// </summary>
    public partial class LoaderDetectionControl : UserControl
    {
        #region 属性
        public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
          "ModuleName", typeof(string), typeof(LoaderDetectionControl),
          new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
        /// <summary>
        /// 模块名称
        /// </summary>
        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));
        /// <summary>
        /// 标题
        /// </summary>
        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));
        /// <summary>
        /// 状态
        /// </summary>
        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));
        /// <summary>
        /// CameraTrigger
        /// </summary>
        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));
        /// <summary>
        /// PlateOutDetected
        /// </summary>
        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));
        /// <summary>
        /// PlateOutNotDetected
        /// </summary>
        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));
        /// <summary>
        /// VisionSystemOnline
        /// </summary>
        public bool VisionSystemOnline
        {
            get
            {
                return (bool)this.GetValue(VisionSystemOnlineProperty);
            }
            set
            {
                this.SetValue(VisionSystemOnlineProperty, value);
            }
        }
        #endregion
        /// <summary>
        /// 构造函数
        /// </summary>
        public LoaderDetectionControl()
        {
            InitializeComponent();
        }

        private void RunPlateOut_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}