| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | using System.Windows;using System.Windows.Controls;using System.Windows.Input;using OpenSEMI.ClientBase;using OpenSEMI.Ctrlib.Controls;using Venus_Core;namespace Venus_Themes.UserControls{    /// <summary>    /// FOUPFrontView.xaml 的交互逻辑    /// </summary>    public partial class FOUPFrontView : UserControl    {        public FOUPFrontView()        {            InitializeComponent();        }        #region UnitData (DependencyProperty)        public ModuleInfo UnitData        {            get { return (ModuleInfo)GetValue(UnitDataProperty); }            set { SetValue(UnitDataProperty, value); }        }        public static readonly DependencyProperty UnitDataProperty =            DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(FOUPFrontView), new UIPropertyMetadata(null));        public bool ShowTitle        {            get { return (bool)GetValue(ShowTitleProperty); }            set { SetValue(ShowTitleProperty, value); }        }        public static readonly DependencyProperty ShowTitleProperty =            DependencyProperty.Register("ShowTitle", typeof(bool), typeof(FOUPFrontView), new UIPropertyMetadata(true));        #endregion        private void Slot_SlotMouseButtonDown(object sender, MouseButtonEventArgs e)        {            VenusGlobalEvents.OnSlotRightClickChanged(sender as Slot);        }    }}
 |