iPerlCommunicationForm resized depending on the number of iPerl-s, gray color, ver.2.5.273
This commit is contained in:
@@ -1016,6 +1016,12 @@ namespace TBF.BenchControl.Sequences
|
|||||||
return TestAndLogUiCmdStop(null, e);
|
return TestAndLogUiCmdStop(null, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns true and makes a log when 'e' contains Event.UiCmdStop
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="test"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
/// <returns></returns>
|
||||||
protected bool TestAndLogUiCmdStop(Test test, IList<Event> e)
|
protected bool TestAndLogUiCmdStop(Test test, IList<Event> e)
|
||||||
{
|
{
|
||||||
if (!e.Contains(Event.UiCmdStop)) return false;
|
if (!e.Contains(Event.UiCmdStop)) return false;
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStart
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
e = StateMachine.WaitRunDevsRunOps();
|
e = StateMachine.WaitRunDevsRunOps();
|
||||||
if (TestAndLogUiCmdStop(test,e)) { retVal = Event.UiCmdStop; goto stopTest; }
|
if (TestAndLogUiCmdStop(test, e)) { if (retVal == Event.Done) retVal = Event.UiCmdStop; break; }
|
||||||
}
|
}
|
||||||
while (!e.Contains(Event.PreviousStopped));
|
while (!e.Contains(Event.PreviousStopped));
|
||||||
|
|
||||||
|
|||||||
+14
-1
@@ -510,10 +510,23 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
|||||||
}
|
}
|
||||||
textBoxesCount = wmsCount;
|
textBoxesCount = wmsCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Resize the dialog to fit the enabled controls
|
||||||
|
///
|
||||||
|
int xMax = 0;
|
||||||
|
int yMax = 0;
|
||||||
|
for (int i = 0; i < textBoxesCount; i++)
|
||||||
|
{
|
||||||
|
if (messages[i].Left + messages[i].Width > xMax) xMax = messages[i].Left + messages[i].Width;
|
||||||
|
if (messages[i].Top + messages[i].Height > yMax) yMax = messages[i].Top + messages[i].Height;
|
||||||
|
}
|
||||||
|
Width = xMax + 30;
|
||||||
|
Height = yMax + 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Localize()
|
void Localize()
|
||||||
{
|
{
|
||||||
Text = Strings.Water_Meter_States;
|
Text = Strings.Water_Meter_States;
|
||||||
for (int i = 0; i < textBoxesCount; i++)
|
for (int i = 0; i < textBoxesCount; i++)
|
||||||
|
|||||||
Generated
+1708
-1708
File diff suppressed because it is too large
Load Diff
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("2.5.272.1")]
|
[assembly: AssemblyVersion("2.5.273.1")]
|
||||||
[assembly: AssemblyFileVersion("2.5.272.1")]
|
[assembly: AssemblyFileVersion("2.5.273.1")]
|
||||||
|
|||||||
Reference in New Issue
Block a user