| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 | 
							- 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>
 
-     /// VPWMainUIControl.xaml 的交互逻辑
 
-     /// </summary>
 
-     public partial class VPWMainUIControl : UserControl
 
-     {
 
-         public VPWMainUIControl()
 
-         {
 
-             InitializeComponent();
 
-         }
 
-         public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
 
-           "ModuleName", typeof(string), typeof(VPWMainUIControl),
 
-           new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// 模块名称
 
-         /// </summary>
 
-         public string ModuleName
 
-         {
 
-             get
 
-             {
 
-                 return (string)this.GetValue(ModuleNameProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(ModuleNameProperty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty DIWProcessValveProerty = DependencyProperty.Register(
 
-             "DIWProcessValve", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// DIWProcessValve
 
-         /// </summary>
 
-         public bool DIWProcessValve
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(DIWProcessValveProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(DIWProcessValveProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty DIWDegasValveProerty = DependencyProperty.Register(
 
-             "DIWDegasValve", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// DIWDegasValve
 
-         /// </summary>
 
-         public bool DIWDegasValve
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(DIWDegasValveProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(DIWDegasValveProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty DegasAdjustValveProerty = DependencyProperty.Register(
 
-             "DegasAdjustValve", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// DegasAdjustValve
 
-         /// </summary>
 
-         public bool DegasAdjustValve
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(DegasAdjustValveProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(DegasAdjustValveProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty VPW1VACValveProerty = DependencyProperty.Register(
 
-            "VPW1VACValve", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// VPW1VACValve
 
-         /// </summary>
 
-         public bool VPW1VACValve
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(VPW1VACValveProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(VPW1VACValveProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty VPW2VACValveProerty = DependencyProperty.Register(
 
-            "VPW2VACValve", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// VPW2VACValve
 
-         /// </summary>
 
-         public bool VPW2VACValve
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(VPW2VACValveProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(VPW2VACValveProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty IsBoosterPumpOpenProerty = DependencyProperty.Register(
 
-                 "IsBoosterPumpOpen", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// IsBoosterPumpOpen
 
-         /// </summary>
 
-         public bool IsBoosterPumpOpen
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(IsBoosterPumpOpenProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(IsBoosterPumpOpenProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty IsDegasPumpOpenProerty = DependencyProperty.Register(
 
-             "IsDegasPumpOpen", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// IsDegasPumpOpen
 
-         /// </summary>
 
-         public bool IsDegasPumpOpen
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(IsDegasPumpOpenProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(IsDegasPumpOpenProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty IsVacuumPumpOpenProerty = DependencyProperty.Register(
 
-             "IsVacuumPumpOpen", typeof(bool), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         ///IsVacuumPumpOpen
 
-         /// </summary>
 
-         public bool IsVacuumPumpOpen
 
-         {
 
-             get
 
-             {
 
-                 return (bool)this.GetValue(IsVacuumPumpOpenProerty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(IsVacuumPumpOpenProerty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty TotalFlowProperty = DependencyProperty.Register(
 
-         "TotalFlow", typeof(double), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// TotalFlow
 
-         /// </summary>
 
-         public double TotalFlow
 
-         {
 
-             get
 
-             {
 
-                 return (double)this.GetValue(TotalFlowProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(TotalFlowProperty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty Cell1DIWFlowProperty = DependencyProperty.Register(
 
-  "Cell1DIWFlow", typeof(double), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// Cell1DIWFlow
 
-         /// </summary>
 
-         public double Cell1DIWFlow
 
-         {
 
-             get
 
-             {
 
-                 return (double)this.GetValue(Cell1DIWFlowProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(Cell1DIWFlowProperty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty Cell2DIWFlowProperty = DependencyProperty.Register(
 
- "Cell2DIWFlow", typeof(double), typeof(VPWMainUIControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// Cell2DIWFlow
 
-         /// </summary>
 
-         public double Cell2DIWFlow
 
-         {
 
-             get
 
-             {
 
-                 return (double)this.GetValue(Cell2DIWFlowProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(Cell2DIWFlowProperty, value);
 
-             }
 
-         }
 
-         private void OpenDIWProcessValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DiwProcessOn");
 
-         }
 
-         private void CloseDIWProcessValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DiwProcessOff");
 
-         }
 
-         private void OpenDIWDegasValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DiwDegasValveOn");
 
-         }
 
-         private void CloseDIWDegasValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DiwDegasValveOff");
 
-         }
 
-         private void OpenDegasAdjustValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-              InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DegasAdjustOn");
 
-         }
 
-         private void CloseDegasAdjustValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DegasAdjustOff");
 
-         }
 
-         private void OpenVPW1VACValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             //InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DegasAdjustOn");
 
-         }
 
-         private void CloseVPW1VACValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             //InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DegasAdjustOn");
 
-         }
 
-         private void OpenVPW2VACValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             //InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DegasAdjustOn");
 
-         }
 
-         private void CloseVPW2VACValve_Click(object sender, RoutedEventArgs e)
 
-         {
 
-             //InvokeClient.Instance.Service.DoOperation($"{ModuleName}.DegasAdjustOn");
 
-         }
 
-     }
 
- }
 
 
  |