ReplenControl.xaml.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using MECF.Framework.Common.CommonData.Reservoir;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace CyberX8_Themes.UserControls
  17. {
  18. /// <summary>
  19. /// ReplenControl.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class ReplenControl : UserControl
  22. {
  23. public ReplenControl()
  24. {
  25. InitializeComponent();
  26. }
  27. #region 属性
  28. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  29. "ModuleName", typeof(string), typeof(ReplenControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  30. /// <summary>
  31. /// 模块名称
  32. /// </summary>
  33. public string ModuleName
  34. {
  35. get
  36. {
  37. return (string)this.GetValue(ModuleNameProperty);
  38. }
  39. set
  40. {
  41. this.SetValue(ModuleNameProperty, value);
  42. }
  43. }
  44. public static readonly DependencyProperty ReplenNameProperty = DependencyProperty.Register(
  45. "ReplenName", typeof(string), typeof(ReplenControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  46. /// <summary>
  47. /// Replen名称
  48. /// </summary>
  49. public string ReplenName
  50. {
  51. get
  52. {
  53. return (string)this.GetValue(ReplenNameProperty);
  54. }
  55. set
  56. {
  57. this.SetValue(ReplenNameProperty, value);
  58. }
  59. }
  60. public static readonly DependencyProperty BottleLevelProperty = DependencyProperty.Register(
  61. "BottleLevel", typeof(string), typeof(ReplenControl), new FrameworkPropertyMetadata("Empty", FrameworkPropertyMetadataOptions.AffectsRender));
  62. /// <summary>
  63. /// BottleLevel
  64. /// </summary>
  65. public string BottleLevel
  66. {
  67. get
  68. {
  69. return (string)this.GetValue(BottleLevelProperty);
  70. }
  71. set
  72. {
  73. this.SetValue(BottleLevelProperty, value);
  74. }
  75. }
  76. public static readonly DependencyProperty IsPumpOpenProperty = DependencyProperty.Register(
  77. "IsPumpOpen", typeof(bool), typeof(ReplenControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  78. /// <summary>
  79. /// Replen Pump状态
  80. /// </summary>
  81. public bool IsPumpOpen
  82. {
  83. get
  84. {
  85. return (bool)this.GetValue(IsPumpOpenProperty);
  86. }
  87. set
  88. {
  89. this.SetValue(IsPumpOpenProperty, value);
  90. }
  91. }
  92. public static readonly DependencyProperty CurrentDosingVolumeProperty = DependencyProperty.Register(
  93. "CurrentDosingVolume", typeof(double), typeof(ReplenControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
  94. /// <summary>
  95. /// CurrentDosingVolume
  96. /// </summary>
  97. public double CurrentDosingVolume
  98. {
  99. get
  100. {
  101. return (double)this.GetValue(CurrentDosingVolumeProperty);
  102. }
  103. set
  104. {
  105. this.SetValue(CurrentDosingVolumeProperty, value);
  106. }
  107. }
  108. #endregion
  109. }
  110. }