V1.2
This commit is contained in:
@@ -27,6 +27,44 @@ namespace CapMachine.Shared.Controls
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
//ConstSlopSelectedIndex
|
||||
/// <summary>
|
||||
/// TabControl选择的Index
|
||||
/// </summary>
|
||||
public int ConstSlopSelectedIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)base.GetValue(MeterConfig.ConstSlopSelectedIndexProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
base.SetValue(MeterConfig.ConstSlopSelectedIndexProperty, value);
|
||||
}
|
||||
}
|
||||
public static readonly DependencyProperty ConstSlopSelectedIndexProperty = DependencyProperty.Register("ConstSlopSelectedIndex", typeof(int), typeof(MeterConfig), new PropertyMetadata(1));
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 常量数据
|
||||
/// </summary>
|
||||
public double ConstantValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double)base.GetValue(MeterConfig.ConstantValueProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
base.SetValue(MeterConfig.ConstantValueProperty, value);
|
||||
}
|
||||
}
|
||||
public static readonly DependencyProperty ConstantValueProperty = DependencyProperty.Register("ConstantValue", typeof(double), typeof(MeterConfig), new PropertyMetadata(0.0));
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 仪表名称
|
||||
/// </summary>
|
||||
public string MeterName
|
||||
{
|
||||
get
|
||||
@@ -38,7 +76,7 @@ namespace CapMachine.Shared.Controls
|
||||
base.SetValue(MeterConfig.MeterNameProperty, value);
|
||||
}
|
||||
}
|
||||
public static readonly DependencyProperty MeterNameProperty = DependencyProperty.Register("MeterName", typeof(string), typeof(MeterConfig), new PropertyMetadata("速度"));
|
||||
public static readonly DependencyProperty MeterNameProperty = DependencyProperty.Register("MeterName", typeof(string), typeof(MeterConfig), new PropertyMetadata("变量"));
|
||||
|
||||
|
||||
//MeterSlopCell
|
||||
@@ -107,7 +145,7 @@ namespace CapMachine.Shared.Controls
|
||||
|
||||
//MeterSelectedChangedCmd
|
||||
/// <summary>
|
||||
/// Add 命令
|
||||
/// MeterSelectedChanged 命令
|
||||
/// </summary>
|
||||
public ICommand MeterSelectedChangedCmd
|
||||
{
|
||||
@@ -118,5 +156,96 @@ namespace CapMachine.Shared.Controls
|
||||
DependencyProperty.Register("MeterSelectedChangedCmd", typeof(ICommand), typeof(MeterConfig), new PropertyMetadata(default(ICommand)));
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Constant 保存 命令
|
||||
/// </summary>
|
||||
public ICommand ConstantSaveCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(ConstantSaveCommandProperty); }
|
||||
set { SetValue(ConstantSaveCommandProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty ConstantSaveCommandProperty =
|
||||
DependencyProperty.Register("ConstantSaveCommand", typeof(ICommand), typeof(MeterConfig), new PropertyMetadata(default(ICommand)));
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Constant/Slop 常值和斜率切换 命令
|
||||
/// </summary>
|
||||
public ICommand SwitchConstSlopCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(SwitchConstSlopCommandProperty); }
|
||||
set { SetValue(SwitchConstSlopCommandProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty SwitchConstSlopCommandProperty =
|
||||
DependencyProperty.Register("SwitchConstSlopCommand", typeof(ICommand), typeof(MeterConfig), new PropertyMetadata(default(ICommand)));
|
||||
|
||||
///// <summary>
|
||||
///// Constant/Slop 切换命令的参数值
|
||||
///// </summary>
|
||||
//public bool SwitchConstSlopPar
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return (bool)base.GetValue(MeterConfig.SwitchConstSlopParProperty);
|
||||
// }
|
||||
// set
|
||||
// {
|
||||
// base.SetValue(MeterConfig.SwitchConstSlopParProperty, value);
|
||||
// }
|
||||
//}
|
||||
//public static readonly DependencyProperty SwitchConstSlopParProperty = DependencyProperty.Register("SwitchConstSlopPar", typeof(bool), typeof(MeterConfig), new PropertyMetadata(true));
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 斜率列表总时间
|
||||
/// </summary>
|
||||
public int TotalSlopTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)base.GetValue(MeterConfig.TotalSlopTimeProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
base.SetValue(MeterConfig.TotalSlopTimeProperty, value);
|
||||
}
|
||||
}
|
||||
public static readonly DependencyProperty TotalSlopTimeProperty = DependencyProperty.Register("TotalSlopTime", typeof(int), typeof(MeterConfig), new PropertyMetadata(0));
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 斜率循环的次数
|
||||
/// </summary>
|
||||
public double Cycle
|
||||
{
|
||||
get
|
||||
{
|
||||
return (double)base.GetValue(MeterConfig.CycleProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
base.SetValue(MeterConfig.CycleProperty, value);
|
||||
}
|
||||
}
|
||||
public static readonly DependencyProperty CycleProperty = DependencyProperty.Register("Cycle", typeof(double), typeof(MeterConfig), new PropertyMetadata(1.0));
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 斜率列表 是否满足要求
|
||||
/// </summary>
|
||||
public bool IsTimeOk
|
||||
{
|
||||
get
|
||||
{
|
||||
return (bool)base.GetValue(MeterConfig.IsTimeOkProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
base.SetValue(MeterConfig.IsTimeOkProperty, value);
|
||||
}
|
||||
}
|
||||
public static readonly DependencyProperty IsTimeOkProperty = DependencyProperty.Register("IsTimeOk", typeof(bool), typeof(MeterConfig), new PropertyMetadata(false));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user