using System;
using System.Collections.Generic;
namespace SmartCoalApplication.Core.Param
{
public enum Dtryt
{
///
/// 字典类
///
Array = 0,
///
/// 正整数范围
///
Interger = 1,
///
/// 小数范围
///
Decimal = 2,
///
/// 小数范围(min-max)
///
DecimalScope = 3,
///
/// 奇数范围
///
Odd = 4,
///
/// 输入图像
///
Input = 5,
///
/// 输出图像
///
Output = 6,
///
/// 抉择
///
Choise = 7,
///
/// 布尔
///
Boolean = 8,
///
/// 颜色选择
///
Color = 9,
///
/// 字符串
///
ItemString = 10
}
[Serializable]
public class Args
{
///
/// 参数类型,回头改成枚举
/// 1数组(下拉或单选)
/// 2整数数值范围(滑动块)
/// 3小数数值范围(滑动块)
/// 4正奇数数值范围(滑动块)
/// 5输入图像
/// 6输出图像
/// 7抉择
/// 8布尔类型
///
private Dtryt type;
///
/// 参数的键
///
public string key;
///
/// 参数的初始值
///
public object initialValue;
///
/// 参数的值
///
public object value;
///
/// 参数/参数集合的名称
///
public string name;
///
/// 参数集合
///
public List lists = new List();
///
/// 7抉择:选项集合,支持单选/多选模式
///
public List choiseList = new List();
public Dtryt Type
{
get
{
return this.type;
}
set
{
this.type = value;
}
}
public string Key
{
get
{
return this.key;
}
set
{
this.key = value;
}
}
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}
public object Value
{
get
{
return this.value;
}
set
{
this.value = value;
}
}
///
/// 参数集合
///
public List Lists
{
get
{
return this.lists;
}
set
{
this.lists = value;
}
}
}
}