protected int FirstVersion = int.MinValue;//If need to add an new UI, Set the FirstVersion to the first DataVersion using the UI, then we can read the old version files and the new version files. ///// <summary> ///// 隐藏并不测的项 ///// </summary> //public bool hideAndNoCheck = false; ///// <summary> ///// 必测的项 ///// </summary> //public bool mustCheck = false; /// <summary> /// 常用构造函数 /// </summary> /// <param name="holderWin">包含此UI的检查框</param> /// <param name="showLevel">显示层级。0为最靠左边,其他层次以等量缩进右缩</param> public UIBase(CheckWinBase holderWin, int showLevel) { level = showLevel; holder = holderWin; holder.AddUi(this); ExpertOnly = false; }
public UIDoubleSlide(CheckWinBase win, string backUnit, int lvl, string text, double min, double max, bool isLargeValueOk) : base(win, lvl) { this.backUnit = backUnit; this.text = text; this.minValue = min; this.maxValue = max; this.isLargeValueOk = isLargeValueOk; }
/// <summary> /// 默认构造函数 /// </summary> /// <param name="win">包含此UI的检查框</param> /// <param name="lvl">显示层级。0为最靠左边,其他层次以等量缩进右缩</param> public UIButton(CheckWinBase win, int lvl, bool isVisible, string strButtonName) : base(win, lvl) { ui = null; this.isVisible = isVisible; this.strButtonName = strButtonName; Check = false; }
/// <summary> /// 常用构造函数 /// </summary> /// <param name="win">包含此UI的检查框</param> /// <param name="lvl">显示层级。0为最靠左边,其他层次以等量缩进右缩</param> /// <param name="pr">显示在参数前面的文本</param> /// <param name="po">显示在参数后面的文本</param> /// <param name="ck">是否需要显示测试结果</param> public UIConfig(CheckWinBase win, int lvl, string pr, string po, double upValue = -1) : base(win, lvl) { target = 0; pre = pr; post = po; upperValue = upValue; }
/// <summary> /// /// </summary> /// <param name="win"></param> /// <param name="lvl"></param> /// <param name="text">text==null 表示不添加label</param> /// <param name="min"></param> /// <param name="max"></param> /// <param name="left"></param> /// <param name="right"></param> /// <param name="isLargeValueOk"></param> public UISlide(CheckWinBase win, string backUnit, int lvl, string text, double min, double max, bool isLargeValueOk, bool hasAppendSet = false) : base(win, lvl) { this.text = text; this.backUnit = backUnit; this.isLargeValueOk = isLargeValueOk; this.minValue = min; this.maxValue = max; this.hasAppendSet = hasAppendSet; }
/// <summary> /// 常用构造函数 /// </summary> /// <param name="win">包含此UI的检查框</param> /// <param name="lvl">显示层级。0为最靠左边,其他层次以等量缩进右缩</param> /// <param name="pr">显示在参数前面的文本</param> /// <param name="po">显示在参数后面的文本</param> /// <param name="ck">是否需要显示测试结果</param> public UIInt(CheckWinBase win, int lvl, string pr, string po, bool ck) : base(win, lvl) { target = 0; hasResult = false; pre = pr; post = po; check = ck; }
/// <summary> /// 默认构造函数 /// </summary> /// <param name="win">包含此UI的检查框</param> /// <param name="lvl">显示层级。0为最靠左边,其他层次以等量缩进右缩</param> public UIColor(CheckWinBase win, int lvl, bool isVisible, List <string> colorTips = null) : base(win, lvl) { _colors = new List <ColorRange>(); _colors.Add(new ColorRange()); _colorTips = colorTips; expand = false; ui = null; this.isVisible = isVisible; }
public UICheckBox(CheckWinBase win, int lvl, string text, bool isVisible) : base(win, lvl) { this.text = text; Visible = isVisible; _check = false; }
/// <summary> /// 指定检查框参数设置UI是否正显示在界面上。 /// </summary> /// <param name="holder"></param> /// <returns></returns> internal static bool HolderShowing(CheckWinBase holder) { return((holder == CurFocus) && !AutoChecking && ShowingUI); }
public UIRadio(CheckWinBase win, int lvl, bool isVisible, string text) : base(win, lvl) { this.isVisible = isVisible; this.text = text; Check = false; }