123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- using MECF.Framework.Common.CommonData.Reservoir;
- 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>
- /// ReplenControl.xaml 的交互逻辑
- /// </summary>
- public partial class ReplenControl : UserControl
- {
- public ReplenControl()
- {
- InitializeComponent();
- }
- #region 属性
- public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
- "ModuleName", typeof(string), typeof(ReplenControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// 模块名称
- /// </summary>
- public string ModuleName
- {
- get
- {
- return (string)this.GetValue(ModuleNameProperty);
- }
- set
- {
- this.SetValue(ModuleNameProperty, value);
- }
- }
-
- public static readonly DependencyProperty ReplenNameProperty = DependencyProperty.Register(
- "ReplenName", typeof(string), typeof(ReplenControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Replen名称
- /// </summary>
- public string ReplenName
- {
- get
- {
- return (string)this.GetValue(ReplenNameProperty);
- }
- set
- {
- this.SetValue(ReplenNameProperty, value);
- }
- }
- public static readonly DependencyProperty BottleLevelProperty = DependencyProperty.Register(
- "BottleLevel", typeof(string), typeof(ReplenControl), new FrameworkPropertyMetadata("Empty", FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// BottleLevel
- /// </summary>
- public string BottleLevel
- {
- get
- {
- return (string)this.GetValue(BottleLevelProperty);
- }
- set
- {
- this.SetValue(BottleLevelProperty, value);
- }
- }
- public static readonly DependencyProperty IsPumpOpenProperty = DependencyProperty.Register(
- "IsPumpOpen", typeof(bool), typeof(ReplenControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Replen Pump状态
- /// </summary>
- public bool IsPumpOpen
- {
- get
- {
- return (bool)this.GetValue(IsPumpOpenProperty);
- }
- set
- {
- this.SetValue(IsPumpOpenProperty, value);
- }
- }
- public static readonly DependencyProperty CurrentDosingVolumeProperty = DependencyProperty.Register(
- "CurrentDosingVolume", typeof(double), typeof(ReplenControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// CurrentDosingVolume
- /// </summary>
- public double CurrentDosingVolume
- {
- get
- {
- return (double)this.GetValue(CurrentDosingVolumeProperty);
- }
- set
- {
- this.SetValue(CurrentDosingVolumeProperty, value);
- }
- }
- #endregion
- }
- }
|