| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 | using OpenSEMI.ClientBase;using MECF.Framework.Common.OperationCenter;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;namespace PunkHPX8_Themes.UserControls{    /// <summary>    /// VPWCellUIControl.xaml 的交互逻辑    /// </summary>    public partial class VPWCellUIControl : UserControl    {        public VPWCellUIControl()        {            InitializeComponent();        }        public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(          "ModuleName", typeof(string), typeof(VPWCellUIControl),          new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// 模块名称        /// </summary>        public string ModuleName        {            get            {                return (string)this.GetValue(ModuleNameProperty);            }            set            {                this.SetValue(ModuleNameProperty, value);            }        }        public static readonly DependencyProperty WaferInfoProperty = DependencyProperty.Register(        "WaferInfo", typeof(WaferInfo), typeof(VPWCellUIControl));        /// <summary>        /// WaferInfo        /// </summary>        public WaferInfo WaferInfo        {            get            {                return (WaferInfo)this.GetValue(WaferInfoProperty);            }            set            {                this.SetValue(WaferInfoProperty, value);            }        }        public static readonly DependencyProperty DripValveProerty = DependencyProperty.Register(            "DripValve", typeof(bool), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// DripValve        /// </summary>        public bool DripValve        {            get            {                return (bool)this.GetValue(DripValveProerty);            }            set            {                this.SetValue(DripValveProerty, value);            }        }        public static readonly DependencyProperty SmallValveProerty = DependencyProperty.Register(            "SmallValve", typeof(bool), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// SmallValve        /// </summary>        public bool SmallValve        {            get            {                return (bool)this.GetValue(SmallValveProerty);            }            set            {                this.SetValue(SmallValveProerty, value);            }        }        public static readonly DependencyProperty LargeValveProerty = DependencyProperty.Register(            "LargeValve", typeof(bool), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// LargeValve        /// </summary>        public bool LargeValve        {            get            {                return (bool)this.GetValue(LargeValveProerty);            }            set            {                this.SetValue(LargeValveProerty, value);            }        }        public static readonly DependencyProperty VentValveProerty = DependencyProperty.Register(           "VentValve", typeof(bool), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// VentValve        /// </summary>        public bool VentValve        {            get            {                return (bool)this.GetValue(VentValveProerty);            }            set            {                this.SetValue(VentValveProerty, value);            }        }        public static readonly DependencyProperty DrainValveProerty = DependencyProperty.Register(           "DrainValve", typeof(bool), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// DrainValve        /// </summary>        public bool DrainValve        {            get            {                return (bool)this.GetValue(DrainValveProerty);            }            set            {                this.SetValue(DrainValveProerty, value);            }        }        public static readonly DependencyProperty VacuumValveProerty = DependencyProperty.Register(       "VacuumValve", typeof(bool), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// VacuumValve        /// </summary>        public bool VacuumValve        {            get            {                return (bool)this.GetValue(VacuumValveProerty);            }            set            {                this.SetValue(VacuumValveProerty, value);            }        }        public static readonly DependencyProperty DIWLoopDoProperty = DependencyProperty.Register(        "DIWLoopDo", typeof(double), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// DIWLoopDo        /// </summary>        public double DIWLoopDo        {            get            {                return (double)this.GetValue(DIWLoopDoProperty);            }            set            {                this.SetValue(DIWLoopDoProperty, value);            }        }        public static readonly DependencyProperty DIWFlowProperty = DependencyProperty.Register(       "DIWFlow", typeof(double), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// DIWFlow        /// </summary>        public double DIWFlow        {            get            {                return (double)this.GetValue(DIWFlowProperty);            }            set            {                this.SetValue(DIWFlowProperty, value);            }        }        public static readonly DependencyProperty CellVacuumProperty = DependencyProperty.Register(        "CellVacuum", typeof(double), typeof(VPWCellUIControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));        /// <summary>        /// CellVacuum        /// </summary>        public double CellVacuum        {            get            {                return (double)this.GetValue(CellVacuumProperty);            }            set            {                this.SetValue(CellVacuumProperty, value);            }        }        private void OpenDripValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.FlowDripOn");        }        private void CloseDripValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.FlowDripOff");        }        private void OpenSmallValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.FlowSmallOn");        }        private void CloseSmallValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.FlowSmallOff");        }        private void OpenLargeValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.FlowLargeOn");        }        private void CloseLargeValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.FlowLargeOff");        }        private void OpenVentValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.VentValveOn");        }        private void CloseVentValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.VentValveOff");        }        private void OpenDrainValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DrainValveOn");        }        private void CloseDrainValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DrainValveOff");        }        private void OpenCellVacuumValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.VacuumValveOn");        }        private void CloseCellVacuumValve_Click(object sender, RoutedEventArgs e)        {            InvokeClient.Instance.Service.DoOperation($"{ModuleName}.VacuumValveOff");        }    }}
 |