UcTm.xaml.cs 1.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
using System.Windows;
using System.Windows.Controls;

namespace FLY.DownBlowing.UI.Client.UiModule
{
    /// <summary>
    /// UcTm.xaml 的交互逻辑
    /// 温度测量器
    /// </summary>
    public partial class UcTm : UserControl
    {
        public UcTm()
        {
            InitializeComponent();
        }

        public string Number
        {
            get { return (string)GetValue(NumberProperty); }
            set { SetValue(NumberProperty, value); }
        }

        public static readonly DependencyProperty NumberProperty =
            DependencyProperty.Register(nameof(Number), typeof(string), typeof(UcTm));

        public double PV
        {
            get { return (double)GetValue(PVProperty); }
            set { SetValue(PVProperty, value); }
        }

        public static readonly DependencyProperty PVProperty =
            DependencyProperty.Register(nameof(PV), typeof(double), typeof(UcTm));

    }

    public class UcTmVmUt
    {
        public string Number { get; set; }
        public double PV { get; set; }
    }
}