Changes simplyfying debugging.

This commit is contained in:
Milan Hanajik
2019-06-21 13:25:47 +02:00
parent e252e55197
commit a07c54186f
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -338,10 +338,11 @@ namespace TBF.BenchControl.Sequences
/// <returns></returns> /// <returns></returns>
public void Execute() public void Execute()
{ {
IList<Event> e; IList<Event> e = new List<Event>();
Selection selection; Selection selection;
string selectedTestName; string selectedTestName;
#if !DEBUG
Bridge.OnActivity(this, Strings.Starting_system); Bridge.OnActivity(this, Strings.Starting_system);
WaitForOkButton(); WaitForOkButton();
SetValvesToDefaultState(); SetValvesToDefaultState();
@@ -397,9 +398,9 @@ namespace TBF.BenchControl.Sequences
if (e.Contains(Event.UiCmdStop)) goto stop; if (e.Contains(Event.UiCmdStop)) goto stop;
} }
while (!e.Contains(Event.BalanceDone)); while (!e.Contains(Event.BalanceDone));
#endif
//-------------------------------------------------------------------------------------------- select_procedure:
select_procedure:
CloseBeginForm(); /// Make sure the CycleBeginForm is closed (after an abnormal end, etc.) CloseBeginForm(); /// Make sure the CycleBeginForm is closed (after an abnormal end, etc.)
+1 -1
View File
@@ -224,7 +224,7 @@ namespace TBF
form.CloseForm(null, new EventArgs()); form.CloseForm(null, new EventArgs());
formThread.Join(); formThread.Join();
#if !MUNICH #if !DEBUG && !MUNICH
if (message != null) if (message != null)
{ {
MessageBox.Show(Strings.The_following_components_are_in_simulation_mode_ + Environment.NewLine + message, MessageBox.Show(Strings.The_following_components_are_in_simulation_mode_ + Environment.NewLine + message,