12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- 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>
- /// LoadLock.xaml 的交互逻辑
- /// </summary>
- public partial class LoadLockLeft : UserControl
- {
- public LoadLockLeft()
- {
- InitializeComponent();
- }
- public static readonly DependencyProperty DoorIsOpenProperty = DependencyProperty.Register(
- "DoorIsOpen", typeof(bool), typeof(LoadLockLeft));
- 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(LoadLockLeft));
- 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(LoadLockLeft));
- 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(LoadLockLeft));
- 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 = "LLA", IsOpen = "Open" });
- }
- private void CloseDoor_Click(object sender, RoutedEventArgs e)
- {
- UIEvents.OnLLTDoorRaiseChanged(new DoorPara() { ModuleName = "LLA", 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 = "LLA", IsOpen = "Open" });
- }
- private void CloseDoor2_Click(object sender, RoutedEventArgs e)
- {
- UIEvents.OnLLEDoorRaiseChanged(new DoorPara() { ModuleName = "LLA", IsOpen = "Close" });
- }
- }
- }
|