123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using NEIntelligentControl2.Models.AGC;
- 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 NEIntelligentControl2.Views.AGC
- {
- /// <summary>
- /// 简单AGC卡片
- /// </summary>
- public partial class SimpleAGCCard : UserControl
- {
- /// <summary>
- /// 场站名称
- /// </summary>
- public string StationName { get; set; }
- // ---------依赖属性-----------
- public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(SimpleAGCCard));
- public static readonly DependencyProperty PowerActualProperty = DependencyProperty.Register("PowerActual", typeof(string), typeof(SimpleAGCCard));
- public static readonly DependencyProperty PowerSetProperty = DependencyProperty.Register("PowerSet", typeof(string), typeof(SimpleAGCCard));
- /// <summary>
- /// 场站标题
- /// </summary>
- public string Title { get => GetValue(TitleProperty) as string; set => SetValue(TitleProperty, value); }
- /// <summary>
- /// 实发有功
- /// </summary>
- public string PowerActual { get => GetValue(PowerActualProperty) as string; set => SetValue(PowerActualProperty, value); }
- /// <summary>
- /// 有功设定
- /// </summary>
- public string PowerSet { get => GetValue(PowerSetProperty) as string; set => SetValue(PowerSetProperty, value); }
- public AGCInfo AGCInfo { get; set; }
- public SimpleAGCCard(AGCInfo ai)
- {
- InitializeComponent();
- AGCInfo = ai;
- if (ai != null)
- {
- Title = ai.Title;
- }
- }
- }
- }
|