using OpenSEMI.ClientBase; 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.Media.Media3D; using System.Windows.Navigation; using System.Windows.Shapes; using Venus_Core; namespace Venus_Themes.UserControls { /// /// VenusDETM.xaml 的交互逻辑 /// public partial class VenusDETM : UserControl { public VenusDETM() { InitializeComponent(); } public static readonly DependencyProperty VCEAIsInstalledProperty = DependencyProperty.Register( "VCEAIsInstalled", typeof(bool), typeof(VenusDETM)); public bool VCEAIsInstalled { get => (bool)GetValue(VCEAIsInstalledProperty); set => SetValue(VCEAIsInstalledProperty, value); } public static readonly DependencyProperty VCEBIsInstalledProperty = DependencyProperty.Register( "VCEBIsInstalled", typeof(bool), typeof(VenusDETM)); public bool VCEBIsInstalled { get => (bool)GetValue(VCEBIsInstalledProperty); set => SetValue(VCEBIsInstalledProperty, value); } public static readonly DependencyProperty PMAIsInstalledProperty = DependencyProperty.Register( "PMAIsInstalled", typeof(bool), typeof(VenusDETM)); public bool PMAIsInstalled { get => (bool)GetValue(PMAIsInstalledProperty); set => SetValue(PMAIsInstalledProperty, value); } public static readonly DependencyProperty PMBIsInstalledProperty = DependencyProperty.Register( "PMBIsInstalled", typeof(bool), typeof(VenusDETM)); public bool PMBIsInstalled { get => (bool)GetValue(PMBIsInstalledProperty); set => SetValue(PMBIsInstalledProperty, value); } public static readonly DependencyProperty PMCIsInstalledProperty = DependencyProperty.Register( "PMCIsInstalled", typeof(bool), typeof(VenusDETM)); public static readonly DependencyProperty PMDIsInstalledProperty = DependencyProperty.Register( "PMDIsInstalled", typeof(bool), typeof(VenusDETM)); public static readonly DependencyProperty PAWaferProperty = DependencyProperty.Register( "PAWafer", typeof(WaferInfo), typeof(VenusDETM)); public WaferInfo PAWafer { get => (WaferInfo)GetValue(PAWaferProperty); set => SetValue(PAWaferProperty, value); } //private static void OnDataPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) //{ // if (d is VenusDETM setm) // { // if ((bool)e.NewValue) // { // setm.VPAligner.SetValue(Canvas.LeftProperty, 84.0); // setm.VPAligner.SetValue(Canvas.TopProperty, 240.0); // } // else // { // setm.VPAligner.SetValue(Canvas.LeftProperty, 295.0); // setm.VPAligner.SetValue(Canvas.TopProperty, 120.0) ; // } // } //} public bool PMCIsInstalled { get => (bool)GetValue(PMCIsInstalledProperty); set { SetValue(PMCIsInstalledProperty, value); } } public bool PMDIsInstalled { get => (bool)GetValue(PMDIsInstalledProperty); set { SetValue(PMDIsInstalledProperty, value); } } public static readonly DependencyProperty VPAIsShowProperty = DependencyProperty.Register( "VPAIsShow", typeof(bool), typeof(VenusDETM)); public bool VPAIsShow { get => (bool)GetValue(VPAIsShowProperty); set => SetValue(VPAIsShowProperty, value); } public static readonly DependencyProperty IsAlignerOnRightProperty = DependencyProperty.Register( "IsAlignerOnRight", typeof(bool), typeof(VenusDETM), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); public bool IsAlignerOnRight { get => (bool)GetValue(IsAlignerOnRightProperty); set => SetValue(IsAlignerOnRightProperty, value); } public static readonly DependencyProperty PMADoorIsOpenProperty = DependencyProperty.Register( "PMADoorIsOpen", typeof(bool), typeof(VenusDETM)); public bool PMADoorIsOpen { get => (bool)GetValue(PMADoorIsOpenProperty); set => SetValue(PMADoorIsOpenProperty, value); } public static readonly DependencyProperty PMBDoorIsOpenProperty = DependencyProperty.Register( "PMBDoorIsOpen", typeof(bool), typeof(VenusDETM)); public bool PMBDoorIsOpen { get => (bool)GetValue(PMBDoorIsOpenProperty); set => SetValue(PMBDoorIsOpenProperty, value); } public static readonly DependencyProperty PMCDoorIsOpenProperty = DependencyProperty.Register( "PMCDoorIsOpen", typeof(bool), typeof(VenusDETM)); public bool PMCDoorIsOpen { get => (bool)GetValue(PMCDoorIsOpenProperty); set => SetValue(PMCDoorIsOpenProperty, value); } public static readonly DependencyProperty PMDDoorIsOpenProperty = DependencyProperty.Register( "PMDDoorIsOpen", typeof(bool), typeof(VenusDETM)); public bool PMDDoorIsOpen { get => (bool)GetValue(PMDDoorIsOpenProperty); set => SetValue(PMDDoorIsOpenProperty, value); } public static readonly DependencyProperty VCEADoorIsOpenProperty = DependencyProperty.Register( "VCEADoorIsOpen", typeof(bool), typeof(VenusDETM)); public bool VCEADoorIsOpen { get => (bool)GetValue(VCEADoorIsOpenProperty); set => SetValue(VCEADoorIsOpenProperty, value); } public static readonly DependencyProperty VCEBDoorIsOpenProperty = DependencyProperty.Register( "VCEBDoorIsOpen", typeof(bool), typeof(VenusDETM)); public bool VCEBDoorIsOpen { get => (bool)GetValue(VCEBDoorIsOpenProperty); set => SetValue(VCEBDoorIsOpenProperty, value); } public static readonly DependencyProperty IsShowAisleProperty = DependencyProperty.Register( "IsShowAisle", typeof(bool), typeof(VenusDETM)); public bool IsShowAisle { get => (bool)GetValue(IsShowAisleProperty); set => SetValue(IsShowAisleProperty, value); } private static void OnDataPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (d is VenusDETM setm) { if ((bool)e.NewValue) { setm.VPAligner.SetValue(Canvas.LeftProperty, 84.0); setm.VPAligner.SetValue(Canvas.TopProperty, 240.0); } else { setm.VPAligner.SetValue(Canvas.LeftProperty, 222.0); setm.VPAligner.SetValue(Canvas.TopProperty, 75.0); } } } } }