| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 | using System;using System.Collections.Generic;using System.Linq;using System.Text;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>    /// TransporterGantryTeachControl.xaml 的交互逻辑    /// </summary>    public partial class TransporterGantryTeachControl : UserControl    {        #region 属性        public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register("ModuleName", typeof(string), typeof(TransporterGantryTeachControl),          new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 模块名称        /// </summary>        public string ModuleName        {            get            {                return (string)this.GetValue(ModuleNameProperty);            }            set            {                this.SetValue(ModuleNameProperty, value);            }        }        public static readonly DependencyProperty SavedPositionProperty = DependencyProperty.Register("SavedPosition", typeof(double), typeof(TransporterGantryTeachControl),            new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 当前位置        /// </summary>        public double SavedPosition        {            get            {                return (double)this.GetValue(SavedPositionProperty);            }            set            {                SetValue(SavedPositionProperty, value);            }        }        public static readonly DependencyProperty CurrentPositionProperty = DependencyProperty.Register("CurrentPosition", typeof(double), typeof(TransporterGantryTeachControl),            new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 当前位置        /// </summary>        public double CurrentPosition        {            get            {                return (double)this.GetValue(CurrentPositionProperty);            }            set            {                SetValue(CurrentPositionProperty, value);            }        }        public static readonly DependencyProperty CurrentStationProperty = DependencyProperty.Register("CurrentStation", typeof(string), typeof(TransporterGantryTeachControl),          new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 当前工位        /// </summary>        public string CurrentStation        {            get            {                return (string)this.GetValue(CurrentStationProperty);            }            set            {                this.SetValue(CurrentStationProperty, value);            }        }        public static readonly DependencyProperty DegValueProperty = DependencyProperty.Register(        "DegValue", typeof(double), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 调整数值        /// </summary>        public double DegValue        {            get            {                return (double)this.GetValue(DegValueProperty);            }            set            {                this.SetValue(DegValueProperty, value);            }        }        public static readonly DependencyProperty IncrementValueProperty = DependencyProperty.Register(        "IncrementValue", typeof(double), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 步进数值        /// </summary>        public double IncrementValue        {            get            {                return (double)this.GetValue(IncrementValueProperty);            }            set            {                this.SetValue(IncrementValueProperty, value);            }        }        public static readonly DependencyProperty MovingProperty = DependencyProperty.Register(        "Moving", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// Moving        /// </summary>        public bool Moving        {            get            {                return (bool)this.GetValue(MovingProperty);            }            set            {                this.SetValue(MovingProperty, value);            }        }        public static readonly DependencyProperty IsSwitchOnProperty = DependencyProperty.Register(         "IsSwitchOn", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// IsSwitch        /// </summary>        public bool IsSwitchOn        {            get            {                return (bool)this.GetValue(IsSwitchOnProperty);            }            set            {                this.SetValue(IsSwitchOnProperty, value);            }        }        public static readonly DependencyProperty HomedProperty = DependencyProperty.Register(        "Homed", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// Homed        /// </summary>        public bool Homed        {            get            {                return (bool)this.GetValue(HomedProperty);            }            set            {                this.SetValue(HomedProperty, value);            }        }        public static readonly DependencyProperty TorqueLimitedProperty = DependencyProperty.Register(        "TorqueLimited", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// TorqueLimited        /// </summary>        public bool TorqueLimited        {            get            {                return (bool)this.GetValue(TorqueLimitedProperty);            }            set            {                this.SetValue(TorqueLimitedProperty, value);            }        }        public static readonly DependencyProperty PositiveHwSwitchedProperty = DependencyProperty.Register(        "PositiveHwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// PositiveHwSwitched        /// </summary>        public bool PositiveHwSwitched        {            get            {                return (bool)this.GetValue(PositiveHwSwitchedProperty);            }            set            {                this.SetValue(PositiveHwSwitchedProperty, value);            }        }        public static readonly DependencyProperty NegativeHwSwitchedProperty = DependencyProperty.Register(        "NegativeHwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// NegativeHwSwitched        /// </summary>        public bool NegativeHwSwitched        {            get            {                return (bool)this.GetValue(NegativeHwSwitchedProperty);            }            set            {                this.SetValue(NegativeHwSwitchedProperty, value);            }        }        public static readonly DependencyProperty PositiveSwSwitchedProperty = DependencyProperty.Register(        "PositiveSwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// PositiveSwSwitched        /// </summary>        public bool PositiveSwSwitched        {            get            {                return (bool)this.GetValue(PositiveSwSwitchedProperty);            }            set            {                this.SetValue(PositiveSwSwitchedProperty, value);            }        }        public static readonly DependencyProperty NegativeSwSwitchedProperty = DependencyProperty.Register(        "NegativeSwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// NegativeSwSwitched        /// </summary>        public bool NegativeSwSwitched        {            get            {                return (bool)this.GetValue(NegativeSwSwitchedProperty);            }            set            {                this.SetValue(NegativeSwSwitchedProperty, value);            }        }        public static readonly DependencyProperty ReadyToLock1Property = DependencyProperty.Register(        "ReadyToLock1", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// ReadyToLock1        /// </summary>        public bool ReadyToLock1        {            get            {                return (bool)this.GetValue(ReadyToLock1Property);            }            set            {                this.SetValue(ReadyToLock1Property, value);            }        }        public static readonly DependencyProperty ReadyToLock2Property = DependencyProperty.Register(        "ReadyToLock2", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// ReadyToLock2        /// </summary>        public bool ReadyToLock2        {            get            {                return (bool)this.GetValue(ReadyToLock2Property);            }            set            {                this.SetValue(ReadyToLock2Property, value);            }        }        public static readonly DependencyProperty WaferPresent1Property = DependencyProperty.Register(        "WaferPresent1", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// WaferPresent1        /// </summary>        public bool WaferPresent1        {            get            {                return (bool)this.GetValue(WaferPresent1Property);            }            set            {                this.SetValue(WaferPresent1Property, value);            }        }        public static readonly DependencyProperty WaferPresent2Property = DependencyProperty.Register(        "WaferPresent2", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// WaferPresent2        /// </summary>        public bool WaferPresent2        {            get            {                return (bool)this.GetValue(WaferPresent2Property);            }            set            {                this.SetValue(WaferPresent2Property, value);            }        }        #endregion        public TransporterGantryTeachControl()        {            InitializeComponent();        }    }}
 |