123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- 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>
- /// CellStatusControl.xaml 的交互逻辑
- /// </summary>
- public partial class CellStatusControl : UserControl
- {
- public CellStatusControl()
- {
- InitializeComponent();
- }
- #region 属性
- public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
- "ModuleName", typeof(string), typeof(CellStatusControl),
- new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// 模块名称
- /// </summary>
- public string ModuleName
- {
- get
- {
- return (string)this.GetValue(ModuleNameProperty);
- }
- set
- {
- this.SetValue(ModuleNameProperty, value);
- }
- }
- public static readonly DependencyProperty AnodeAFlowProperty = DependencyProperty.Register(
- "AnodeAFlow", typeof(double), typeof(CellStatusControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Anode A Flow
- /// </summary>
- public double AnodeAFlow
- {
- get
- {
- return (double)this.GetValue(AnodeAFlowProperty);
- }
- set
- {
- this.SetValue(AnodeAFlowProperty, value);
- }
- }
- public static readonly DependencyProperty AnodeAStatusProperty = DependencyProperty.Register(
- "AnodeAStatus", typeof(string), typeof(CellStatusControl),
- new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Anode A Status
- /// </summary>
- public string AnodeAStatus
- {
- get
- {
- return (string)this.GetValue(AnodeAStatusProperty);
- }
- set
- {
- this.SetValue(AnodeAStatusProperty, value);
- }
- }
- public static readonly DependencyProperty AnodeBFlowProperty = DependencyProperty.Register(
- "AnodeBFlow", typeof(double), typeof(CellStatusControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Anode B Flow
- /// </summary>
- public double AnodeBFlow
- {
- get
- {
- return (double)this.GetValue(AnodeBFlowProperty);
- }
- set
- {
- this.SetValue(AnodeBFlowProperty, value);
- }
- }
- public static readonly DependencyProperty AnodeBStatusProperty = DependencyProperty.Register(
- "AnodeBStatus", typeof(string), typeof(CellStatusControl),
- new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Anode B Status
- /// </summary>
- public string AnodeBStatus
- {
- get
- {
- return (string)this.GetValue(AnodeBStatusProperty);
- }
- set
- {
- this.SetValue(AnodeBStatusProperty, value);
- }
- }
- public static readonly DependencyProperty CellFlowProperty = DependencyProperty.Register(
- "CellFlow", typeof(double), typeof(CellStatusControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// Cell Flow
- /// </summary>
- public double CellFlow
- {
- get
- {
- return (double)this.GetValue(CellFlowProperty);
- }
- set
- {
- this.SetValue(CellFlowProperty, value);
- }
- }
- #endregion
- }
- }
|