IParamsProvider : IList<strig> ParamValues( ) --> ICollection<string> ParamValues( )
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Config.Entities
|
||||
/// Returns a list of possible values of one parameter (ComboBox when editing) or null (Textbox when editing).
|
||||
/// </summary>
|
||||
/// <param name="ix">Zero based index of the parameter</param>
|
||||
IList<string> ParamValues(int ix);
|
||||
ICollection<string> ParamValues(int ix);
|
||||
|
||||
/// <summary>
|
||||
/// Returns a parameter value in the string form
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace TBF.BenchControl.Configs.ParamsProvider
|
||||
editors = new Control[paramsProvider.ParamsCount()];
|
||||
for (int i = 0; i < paramsProvider.ParamsCount(); i++)
|
||||
{
|
||||
IList<string> values = paramsProvider.ParamValues(i);
|
||||
ICollection<string> values = paramsProvider.ParamValues(i);
|
||||
if (values == null)
|
||||
{
|
||||
editors[i] = new TextBox();
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace TBF.BenchControl.DataContainers.BackupAndSecurityOptions
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace TBF.BenchControl.DataContainers.BenchInfo.Extended
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
if (i == 10)
|
||||
{
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace TBF.BenchControl.DataContainers.BenchInfo.iPerl
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
if (i == 10)
|
||||
{
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace TBF.BenchControl.DataContainers.Buoyancy
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace TBF.BenchControl.DataContainers.Density
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace TBF.BenchControl.DataEntry.DataStream
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace TBF.BenchControl.Elde.TempMeterMeret
|
||||
};
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
public IList<string> ParamValues(int i) { return null; }
|
||||
public ICollection<string> ParamValues(int i) { return null; }
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace TBF.BenchControl.Hart.Common
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
IList<string> list = new List<string>();
|
||||
switch (i)
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace TBF.BenchControl.Hart.Nivotrack
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
IList<string> list = new List<string>();
|
||||
switch (i)
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace TBF.BenchControl.Modbus.UltrasoundLevelMeter
|
||||
};
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
public IList<string> ParamValues(int i) { return null; }
|
||||
public ICollection<string> ParamValues(int i) { return null; }
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace TBF.BenchControl.Modbus.WaterAnalyzer
|
||||
};
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
public IList<string> ParamValues(int i) { return null; }
|
||||
public ICollection<string> ParamValues(int i) { return null; }
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace TBF.BenchControl.Modbus.WaterAnalyzer2
|
||||
};
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
public IList<string> ParamValues(int i) { return null; }
|
||||
public ICollection<string> ParamValues(int i) { return null; }
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace TBF.BenchControl.Output.DB.SensusOracle
|
||||
public override string ParamName(int i) { return paramNames[i]; }
|
||||
public override int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public override IList<string> ParamValues(int i)
|
||||
public override ICollection<string> ParamValues(int i)
|
||||
{
|
||||
IList<string> retVal = new List<string>();
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace TBF.BenchControl.Output.EventTriggers.Iperl
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
IList<string> listOfValues = new List<string>();
|
||||
if (i == 1)
|
||||
|
||||
@@ -168,7 +168,7 @@ namespace TBF.BenchControl.Output.EventTriggers.Standard
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
IList<string> listOfValues = new List<string>();
|
||||
if (i >= 12)
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace TBF.BenchControl.Output.FileWriters.IperlLogger
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace TBF.BenchControl
|
||||
}
|
||||
|
||||
/// <summary> To be overridden </summary>
|
||||
public virtual IList<string> ParamValues(int ix)
|
||||
public virtual ICollection<string> ParamValues(int ix)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace TBF.BenchControl.RegisterReaders.DataStream.MefImport
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace TBF.BenchControl.RegisterReaders.DataStream.Reader
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
|
||||
@@ -38,12 +38,11 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
||||
public override string ParamName(int i) { return paramNames[i]; }
|
||||
public override int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public override IList<string> ParamValues(int i)
|
||||
public override ICollection<string> ParamValues(int i)
|
||||
{
|
||||
IList<string> retVal = new List<string>();
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
List<string> retVal = new List<string>();
|
||||
retVal.Add(iPerlCommunicationForm.ReadConfigurationStr);
|
||||
retVal.Add(string.Format("{0} A0", iPerlCommunicationForm.SetTestModeStr));
|
||||
retVal.Add(string.Format("{0} A4", iPerlCommunicationForm.SetTestModeStr));
|
||||
@@ -81,14 +80,12 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
||||
retVal.Add(string.Format("{0} if enabled", iPerlCommunicationForm.ReadConfigurationStr));
|
||||
retVal.Add(string.Format("{0} 80", iPerlCommunicationForm.SetTestModeStr));
|
||||
retVal.Add("iPerl_check prevWorkStep direction q2factors");
|
||||
return retVal;
|
||||
}
|
||||
else
|
||||
{
|
||||
retVal.Add(Strings.yes);
|
||||
retVal.Add(Strings.no);
|
||||
return new string[] { Strings.yes, Strings.no };
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
public override string ToString(int i)
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
public override string ParamName(int i) { return paramNames[i]; }
|
||||
public override int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public override IList<string> ParamValues(int i)
|
||||
public override ICollection<string> ParamValues(int i)
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace TBF.BenchControl
|
||||
}
|
||||
|
||||
/// <summary> To be overridden </summary>
|
||||
public virtual IList<string> ParamValues(int ix)
|
||||
public virtual ICollection<string> ParamValues(int ix)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace TBF.BenchControl.Various.ErrorFlags
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace TBF.BenchControl.Various.StatisticsMonitoring
|
||||
public string ParamName(int i) { return paramNames[i]; }
|
||||
public int ParamsCount() { return paramNames.Length; }
|
||||
|
||||
public IList<string> ParamValues(int i)
|
||||
public ICollection<string> ParamValues(int i)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace TBF.UI.Procedures
|
||||
for (int i = 0; i < paramsCount; i++)
|
||||
{
|
||||
listViewEx.Columns.Add(sampleToCreateHeader.ParamName(i), 80);
|
||||
IList<string> values = sampleToCreateHeader.ParamValues(i);
|
||||
ICollection<string> values = sampleToCreateHeader.ParamValues(i);
|
||||
if (values == null)
|
||||
{
|
||||
editors[i] = new TextBox();
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace TBF.UI.Procedures
|
||||
k++;
|
||||
for (int j = 0; j < paramCounts[i]; j++)
|
||||
{
|
||||
IList<string> values = cmpntsParams[i].ParamValues(j);
|
||||
ICollection<string> values = cmpntsParams[i].ParamValues(j);
|
||||
if (values == null)
|
||||
{
|
||||
editors[k] = new TextBox();
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace TBF.UI.Procedures
|
||||
for (int i = 0; i < paramsCount; i++)
|
||||
{
|
||||
listViewEx.Columns.Add(sampleToCreateHeader.ParamName(i), 90);
|
||||
IList<string> values = sampleToCreateHeader.ParamValues(i);
|
||||
ICollection<string> values = sampleToCreateHeader.ParamValues(i);
|
||||
if (values == null)
|
||||
{
|
||||
editors[i] = new TextBox();
|
||||
|
||||
Reference in New Issue
Block a user