123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- 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.Navigation;
- using System.Windows.Shapes;
- using Venus_Core;
- namespace Venus_Themes.UserControls
- {
- /// <summary>
- /// VenusDETM.xaml 的交互逻辑
- /// </summary>
- 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), new PropertyMetadata(true, OnDataPropertyChanged));
- 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 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);
- }
- }
- }
|