IParamsProvider.UpdateParam(...) returns CfgUpdateFlags now.

This commit is contained in:
Milan Hanajik
2018-06-18 16:45:32 +02:00
parent cdc971f733
commit e889215cf4
32 changed files with 304 additions and 276 deletions
@@ -56,16 +56,16 @@ namespace TBF.BenchControl.Network.Camera.Roi
}
/// Retrieves parameters from UI controls
public void UpdateParam(int i, string strValue)
public CfgUpdateFlags UpdateParam(int i, string strValue)
{
switch (i)
{
case 0: PulsesPerLtr = Utils.ParseUDouble(strValue); return;
case 1: DetectionImagesCount = int.Parse(strValue); return;
case 2: DetectionPeriod1 = int.Parse(strValue); return;
case 3: DetectionPeriod2 = int.Parse(strValue); return;
case 4: RoiParams = strValue; return;
default: return;
case 0: PulsesPerLtr = Utils.ParseUDouble(strValue); return CfgUpdateFlags.None;
case 1: DetectionImagesCount = int.Parse(strValue); return CfgUpdateFlags.None;
case 2: DetectionPeriod1 = int.Parse(strValue); return CfgUpdateFlags.None;
case 3: DetectionPeriod2 = int.Parse(strValue); return CfgUpdateFlags.None;
case 4: RoiParams = strValue; return CfgUpdateFlags.None;
default: return CfgUpdateFlags.None;
}
}