File names of test start and test end pictures are defined in DataEntry.Uni.

This commit is contained in:
Milan Hanajik
2023-08-02 10:19:12 +02:00
parent dd5b20ab38
commit ed5cd89d6a
12 changed files with 140 additions and 59 deletions
+37 -23
View File
@@ -58,32 +58,34 @@ namespace TBF.Rig.DataEntry.Uni
public bool TestStartBoxAlwaysEn; /// 20
public bool TestIsLrOrder; /// 21
public bool TestIsCameraPicture; /// 22
public string TestFormCloseKeys; /// 23
public string TestStartPicName; /// 23
public string TestEndPicName; /// 24
public string TestFormCloseKeys; /// 25
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[] BgItemContent; /// 26 + 4 * ix
public string[] BgItemCaption; /// 27 + 4 * ix
public Ac[] BgItemAction; /// 28 + 4 * ix
public int[] BgItemWidth; /// 29 + 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[] BgColumnContent; /// 30 + 4 * ix
public string[] BgColumnCaption; /// 31 + 4 * ix
public Ac[] BgColumnAction; /// 32 + 4 * ix
public int[] BgColumnWidth; /// 33 + 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[] EnItemContent; /// 34 + 4 * ix
public string[] EnItemCaption; /// 35 + 4 * ix
public Ac[] EnItemAction; /// 36 + 4 * ix
public int[] EnItemWidth; /// 37 + 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[] EnColumnContent; /// 38 + 4 * ix
public string[] EnColumnCaption; /// 39 + 4 * ix
public Ac[] EnColumnAction; /// 40 + 4 * ix
public int[] EnColumnWidth; /// 41 + 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
public Ct[] TestColumnContent; /// 42 + 4 * ix
public string[] TestColumnCaption; /// 43 + 4 * ix
public Ac[] TestColumnAction; /// 44 + 4 * ix
public int[] TestColumnWidth; /// 45 + 4 * ix
///
/// Not serialized (private)
@@ -355,6 +357,8 @@ namespace TBF.Rig.DataEntry.Uni
TestStartBoxAlwaysEn = false;
TestIsLrOrder = false;
TestIsCameraPicture = false;
TestStartPicName = string.Empty;
TestEndPicName = string.Empty;
TestFormCloseKeys = string.Empty;
BgItemContent = new Ct[1] { Ct.BatchAndWmOrder };
@@ -410,6 +414,8 @@ namespace TBF.Rig.DataEntry.Uni
"Test start/end: Start text box always enabled",
"Test start/end: Left-to-right order",
"Test start/end: Show camera picture",
"Test start/end: Start picture name",
"Test start/end: End picture name",
"Test start/end: Keys to close the form",
};
public string ParamName(int i)
@@ -604,7 +610,9 @@ namespace TBF.Rig.DataEntry.Uni
case 20: return TestStartBoxAlwaysEn ? Strings.yes : Strings.no;
case 21: return TestIsLrOrder ? Strings.yes : Strings.no;
case 22: return TestIsCameraPicture ? Strings.yes : Strings.no;
case 23: return TestFormCloseKeys;
case 23: return TestStartPicName;
case 24: return TestEndPicName;
case 25: return TestFormCloseKeys;
default: return string.Empty;
}
@@ -738,7 +746,9 @@ namespace TBF.Rig.DataEntry.Uni
case 20: TestStartBoxAlwaysEn = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
case 21: TestIsLrOrder = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
case 22: TestIsCameraPicture = (str == Strings.yes); return CfgUpdateFlags.RestartRqrd;
case 23: TestFormCloseKeys = str; return CfgUpdateFlags.RestartRqrd;
case 23: TestStartPicName = str; return CfgUpdateFlags.RestartRqrd;
case 24: TestEndPicName = str; return CfgUpdateFlags.RestartRqrd;
case 25: TestFormCloseKeys = str; return CfgUpdateFlags.RestartRqrd;
default:
return CfgUpdateFlags.None;
@@ -885,6 +895,8 @@ namespace TBF.Rig.DataEntry.Uni
case 15:
case 17:
case 23:
case 24:
case 25:
message = string.Empty;
return true;
default:
@@ -941,6 +953,8 @@ namespace TBF.Rig.DataEntry.Uni
prms.TestStartBoxAlwaysEn = TestStartBoxAlwaysEn;
prms.TestIsLrOrder = TestIsLrOrder;
prms.TestIsCameraPicture = TestIsCameraPicture;
prms.TestStartPicName = TestStartPicName;
prms.TestEndPicName = TestEndPicName;
prms.TestFormCloseKeys = TestFormCloseKeys;
prms.BgItemContent = new Ct[GetBgItemsCount()];