1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- 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 CyberX8_Themes.Unity;
- namespace CyberX8_Themes.UserControls
- {
- /// <summary>
- /// LoadLockRight.xaml 的交互逻辑
- /// </summary>
- public partial class LoadLockRight : UserControl
- {
- public LoadLockRight()
- {
- InitializeComponent();
- }
- public static readonly DependencyProperty DoorIsOpenProperty = DependencyProperty.Register(
- "DoorIsOpen", typeof(bool), typeof(LoadLockRight));
- public bool DoorIsOpen
- {
- get { return (bool)this.GetValue(DoorIsOpenProperty); }
- set
- {
- this.SetValue(DoorIsOpenProperty, value);
- }
- }
- public static readonly DependencyProperty Door2IsOpenProperty = DependencyProperty.Register(
- "Door2IsOpen", typeof(bool), typeof(LoadLockRight));
- public bool Door2IsOpen
- {
- get { return (bool)this.GetValue(Door2IsOpenProperty); }
- set
- {
- this.SetValue(Door2IsOpenProperty, value);
- }
- }
- public static readonly DependencyProperty Door2IsVisibilityProperty = DependencyProperty.Register(
- "Door2IsVisibility", typeof(Visibility), typeof(LoadLockRight));
- public Visibility Door2IsVisibility
- {
- get { return (Visibility)this.GetValue(Door2IsVisibilityProperty); }
- set
- {
- this.SetValue(Door2IsVisibilityProperty, value);
- }
- }
- public static readonly DependencyProperty RobotWaferProperty = DependencyProperty.Register(
- "RobotWafer", typeof(WaferInfo), typeof(LoadLockRight));
- public WaferInfo RobotWafer
- {
- get => (WaferInfo)GetValue(RobotWaferProperty);
- set => SetValue(RobotWaferProperty, value);
- }
- private void OpenDoor_Click(object sender, RoutedEventArgs e)
- {
- //var t = ((((this.Parent as Canvas).Parent as Canvas).Parent as UserControl).DataContext).;
- UIEvents.OnLLTDoorRaiseChanged(new DoorPara() { ModuleName = "LLB", IsOpen = "Open" });
- }
- private void CloseDoor_Click(object sender, RoutedEventArgs e)
- {
- UIEvents.OnLLTDoorRaiseChanged(new DoorPara() { ModuleName = "LLB", IsOpen = "Close" });
- }
- private void OpenDoor2_Click(object sender, RoutedEventArgs e)
- {
- //var t = ((((this.Parent as Canvas).Parent as Canvas).Parent as UserControl).DataContext).;
- UIEvents.OnLLEDoorRaiseChanged(new DoorPara() { ModuleName = "LLB", IsOpen = "Open" });
- }
- private void CloseDoor2_Click(object sender, RoutedEventArgs e)
- {
- UIEvents.OnLLEDoorRaiseChanged(new DoorPara() { ModuleName = "LLB", IsOpen = "Close" });
- }
- }
- }
|