| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 | 
							- using MECF.Framework.Common.ProcessCell;
 
- using MECF.Framework.Common.Reservior;
 
- using CyberX8_Core;
 
- 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 CyberX8_Themes.UserControls
 
- {
 
-     /// <summary>
 
-     /// ReserviorControl.xaml 的交互逻辑
 
-     /// </summary>
 
-     public partial class ReserviorControl : UserControl
 
-     {
 
-         public ReserviorControl()
 
-         {
 
-             InitializeComponent();
 
-         }
 
-         public static readonly DependencyProperty ReserviorWidthProperty = DependencyProperty.Register("ReserviorWidth", typeof(int), typeof(ReserviorControl));
 
-         /// <summary>
 
-         /// 宽度
 
-         /// </summary>
 
-         public int ReserviorWidth
 
-         {
 
-             get
 
-             {
 
-                 return (int)this.GetValue(ReserviorWidthProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(ReserviorWidthProperty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty ReserviorNameProperty = DependencyProperty.Register("ReserviorName", typeof(string), typeof(ReserviorControl));
 
-         /// <summary>
 
-         /// 名称
 
-         /// </summary>
 
-         public string ReserviorName
 
-         {
 
-             get
 
-             {
 
-                 return (string)this.GetValue(ReserviorNameProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(ReserviorNameProperty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty ReserviorInfoProperty = DependencyProperty.Register("ReserviorInfo", typeof(ReserviorInfo), typeof(ReserviorControl),
 
-             new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// Reservior对象
 
-         /// </summary>
 
-         public ReserviorInfo ReserviorInfo
 
-         {
 
-             get
 
-             {
 
-                 return (ReserviorInfo)this.GetValue(ReserviorInfoProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(ReserviorInfoProperty, value);
 
-             }
 
-         }
 
-         public static readonly DependencyProperty ReserviorStatusProperty = DependencyProperty.Register(
 
-             "ReserviorStatus", typeof(int), typeof(ReserviorControl), new FrameworkPropertyMetadata((int)CellStatus.Idle, FrameworkPropertyMetadataOptions.AffectsRender));
 
-         /// <summary>
 
-         /// ReserviorStatus
 
-         /// </summary>
 
-         public int ReserviorStatus
 
-         {
 
-             get
 
-             {
 
-                 return (int)this.GetValue(ReserviorStatusProperty);
 
-             }
 
-             set
 
-             {
 
-                 this.SetValue(ReserviorStatusProperty, value);
 
-             }
 
-         }
 
-         private void Canvas_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 
-         {
 
-             GlobalEvents.OnSwitchFixedTabItem("HardWare", "Reservoirs", $"{ReserviorName}");
 
-         }
 
-     }
 
- }
 
 
  |