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));
|
||||||
|
|
||||||
|
|||||||
+13
@@ -510,6 +510,19 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Generated
+1
-1
@@ -1585,7 +1585,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
|||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.Color.OliveDrab;
|
this.BackColor = System.Drawing.Color.DarkGray;
|
||||||
this.ClientSize = new System.Drawing.Size(1161, 795);
|
this.ClientSize = new System.Drawing.Size(1161, 795);
|
||||||
this.Controls.Add(this.textBox48);
|
this.Controls.Add(this.textBox48);
|
||||||
this.Controls.Add(this.textBox47);
|
this.Controls.Add(this.textBox47);
|
||||||
|
|||||||
@@ -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