DataEntry.Uni.TestStartEndForm implemented
This commit is contained in:
@@ -55,34 +55,35 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
public string TestTitle; /// 17
|
||||
public Sz TestSize; /// 18
|
||||
// int TestColumnsCount; /// 19
|
||||
public bool TestIsLrOrder; /// 20
|
||||
public bool TestIsVertArrangement; /// 21
|
||||
public string TestFormCloseKeys; /// 22
|
||||
public bool TestStartBoxAlwaysEn; /// 20
|
||||
public bool TestIsLrOrder; /// 21
|
||||
public bool TestIsVertArrangement; /// 22
|
||||
public string TestFormCloseKeys; /// 23
|
||||
|
||||
public Ct[] BgItemContent; /// 23 + 4 * ix
|
||||
public string[] BgItemCaption; /// 24 + 4 * ix
|
||||
public Ac[] BgItemAction; /// 25 + 4 * ix
|
||||
public int[] BgItemWidth; /// 26 + 4 * ix
|
||||
public Ct[] BgItemContent; /// 24 + 4 * ix
|
||||
public string[] BgItemCaption; /// 25 + 4 * ix
|
||||
public Ac[] BgItemAction; /// 26 + 4 * ix
|
||||
public int[] BgItemWidth; /// 27 + 4 * ix
|
||||
|
||||
public Ct[] BgColumnContent; /// 23 + 4 * ix
|
||||
public string[] BgColumnCaption; /// 24 + 4 * ix
|
||||
public Ac[] BgColumnAction; /// 25 + 4 * ix
|
||||
public int[] BgColumnWidth; /// 26 + 4 * ix
|
||||
public Ct[] BgColumnContent; /// 24 + 4 * ix
|
||||
public string[] BgColumnCaption; /// 25 + 4 * ix
|
||||
public Ac[] BgColumnAction; /// 26 + 4 * ix
|
||||
public int[] BgColumnWidth; /// 27 + 4 * ix
|
||||
|
||||
public Ct[] EnItemContent; /// 23 + 4 * ix
|
||||
public string[] EnItemCaption; /// 24 + 4 * ix
|
||||
public Ac[] EnItemAction; /// 25 + 4 * ix
|
||||
public int[] EnItemWidth; /// 26 + 4 * ix
|
||||
public Ct[] EnItemContent; /// 24 + 4 * ix
|
||||
public string[] EnItemCaption; /// 25 + 4 * ix
|
||||
public Ac[] EnItemAction; /// 26 + 4 * ix
|
||||
public int[] EnItemWidth; /// 27 + 4 * ix
|
||||
|
||||
public Ct[] EnColumnContent; /// 23 + 4 * ix
|
||||
public string[] EnColumnCaption; /// 24 + 4 * ix
|
||||
public Ac[] EnColumnAction; /// 25 + 4 * ix
|
||||
public int[] EnColumnWidth; /// 26 + 4 * ix
|
||||
public Ct[] EnColumnContent; /// 24 + 4 * ix
|
||||
public string[] EnColumnCaption; /// 25 + 4 * ix
|
||||
public Ac[] EnColumnAction; /// 26 + 4 * ix
|
||||
public int[] EnColumnWidth; /// 27 + 4 * ix
|
||||
|
||||
public Ct[] TestColumnContent; /// 23 + 4 * ix
|
||||
public string[] TestColumnCaption; /// 24 + 4 * ix
|
||||
public Ac[] TestColumnAction; /// 25 + 4 * ix
|
||||
public int[] TestColumnWidth; /// 26 + 4 * ix
|
||||
public Ct[] TestColumnContent; /// 24 + 4 * ix
|
||||
public string[] TestColumnCaption; /// 25 + 4 * ix
|
||||
public Ac[] TestColumnAction; /// 26 + 4 * ix
|
||||
public int[] TestColumnWidth; /// 27 + 4 * ix
|
||||
|
||||
///
|
||||
/// Not serialized
|
||||
@@ -339,6 +340,7 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
TestStartEndShowForm = true;
|
||||
TestTitle = "Enter states of water meters";
|
||||
TestSize = Sz.M;
|
||||
TestStartBoxAlwaysEn = false;
|
||||
TestIsLrOrder = false;
|
||||
TestIsVertArrangement = false;
|
||||
TestFormCloseKeys = string.Empty;
|
||||
@@ -377,7 +379,7 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
"Beginning: Common items count",
|
||||
"Beginning: Columns count",
|
||||
"Beginning: Left-to-right order",
|
||||
"Beginning: Vertical arrangement (2 lines)",
|
||||
"Beginning: Vertical arrangement",
|
||||
"Beginning: Keys to close the form",
|
||||
|
||||
"End: Show form",
|
||||
@@ -386,15 +388,16 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
"End: Common items count",
|
||||
"End: Columns count",
|
||||
"End: Left-to-right order",
|
||||
"End: Vertical arrangement (2 lines)",
|
||||
"End: Vertical arrangement",
|
||||
"End: Keys to close the form",
|
||||
|
||||
"Test start/end: Show form",
|
||||
"Test start/end: Form title",
|
||||
"Test start/end: Font size",
|
||||
"Test start/end: Columns count",
|
||||
"Test start/end: Start text box always enabled",
|
||||
"Test start/end: Left-to-right order",
|
||||
"Test start/end: Vertical arrangement (2 lines)",
|
||||
"Test start/end: Vertical arrangement",
|
||||
"Test start/end: Keys to close the form",
|
||||
};
|
||||
public string ParamName(int i)
|
||||
@@ -493,6 +496,7 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
case 16:
|
||||
case 20:
|
||||
case 21:
|
||||
case 22:
|
||||
return new string[] { Strings.yes, Strings.no };
|
||||
case 2:
|
||||
case 10:
|
||||
@@ -585,9 +589,10 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
case 17: return TestTitle;
|
||||
case 18: return TestSize.ToDescription();
|
||||
case 19: return GetTestColumnsCount().ToString();
|
||||
case 20: return TestIsLrOrder ? Strings.yes : Strings.no;
|
||||
case 21: return TestIsVertArrangement ? Strings.yes : Strings.no;
|
||||
case 22: return TestFormCloseKeys;
|
||||
case 20: return TestStartBoxAlwaysEn ? Strings.yes : Strings.no;
|
||||
case 21: return TestIsLrOrder ? Strings.yes : Strings.no;
|
||||
case 22: return TestIsVertArrangement ? Strings.yes : Strings.no;
|
||||
case 23: return TestFormCloseKeys;
|
||||
|
||||
default: return string.Empty;
|
||||
}
|
||||
@@ -718,9 +723,10 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
}
|
||||
return CfgUpdateFlags.None;
|
||||
case 19: SetTestColumnsCount(int.Parse(str)); return CfgUpdateFlags.RestartRqrd;
|
||||
case 20: TestIsLrOrder = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
|
||||
case 21: TestIsVertArrangement = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
|
||||
case 22: TestFormCloseKeys = str; return CfgUpdateFlags.RestartRqrd;
|
||||
case 20: TestStartBoxAlwaysEn = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
|
||||
case 21: TestIsLrOrder = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
|
||||
case 22: TestIsVertArrangement = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
|
||||
case 23: TestFormCloseKeys = str; return CfgUpdateFlags.RestartRqrd;
|
||||
|
||||
default:
|
||||
return CfgUpdateFlags.None;
|
||||
@@ -849,6 +855,7 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
case 18:
|
||||
case 20:
|
||||
case 21:
|
||||
case 22:
|
||||
message = string.Empty;
|
||||
if (ParamValues(i).Contains(str)) return true;
|
||||
break;
|
||||
@@ -865,7 +872,7 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
case 9:
|
||||
case 15:
|
||||
case 17:
|
||||
case 22:
|
||||
case 23:
|
||||
message = string.Empty;
|
||||
return true;
|
||||
default:
|
||||
@@ -919,6 +926,7 @@ namespace TBF.Rig.DataEntry.Uni
|
||||
prms.TestStartEndShowForm = TestStartEndShowForm;
|
||||
prms.TestTitle = TestTitle;
|
||||
prms.TestSize = TestSize;
|
||||
prms.TestStartBoxAlwaysEn = TestStartBoxAlwaysEn;
|
||||
prms.TestIsLrOrder = TestIsLrOrder;
|
||||
prms.TestIsVertArrangement = TestIsVertArrangement;
|
||||
prms.TestFormCloseKeys = TestFormCloseKeys;
|
||||
|
||||
Reference in New Issue
Block a user