using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace ryCommon.Pram { /// /// 控件信息 /// public class Control_Info { /// /// id /// public string id = ""; /// /// 控件对象 /// public Control control; /// /// 控件值类型 /// public CValueType value_type = CValueType.Default; /// /// 默认值 /// public object defValue; } /// /// 值类型 /// public enum CValueType { /// /// 默认 /// Default, /// /// 取列表顺序值 /// ItemIndex, /// /// 取当前选择的列表值 /// ItemText, /// /// 取对象值 /// ObjectItem } /// /// 保存的设置类型 /// public enum SettingType { /// /// Ini /// Ini, /// /// XML /// XML } /// ///对象值 /// public class ObjectItem { /// /// 显示的文本 /// public string Text = ""; /// /// 图片序号 /// public int ImageIndex = -1; /// /// id /// public string Id = ""; /// /// Tag值 /// public object Tag = null; /// /// 显示文本值 /// /// public override string ToString() { return Text; } } /// /// 星期数据 /// public class WeekInfo { /// /// 一周的开始时间 /// public DateTime startDate; /// /// 一周的结束时间 /// public DateTime endDate; } }