From a07c54186f75490524bd97ff22225484a4421d4a Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Fri, 21 Jun 2019 13:25:47 +0200 Subject: [PATCH] Changes simplyfying debugging. --- TBF/BenchControl/Sequences/MainSeq.cs | 7 ++++--- TBF/MainWnd.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/TBF/BenchControl/Sequences/MainSeq.cs b/TBF/BenchControl/Sequences/MainSeq.cs index 88487a560..ae66dc444 100644 --- a/TBF/BenchControl/Sequences/MainSeq.cs +++ b/TBF/BenchControl/Sequences/MainSeq.cs @@ -338,10 +338,11 @@ namespace TBF.BenchControl.Sequences /// public void Execute() { - IList e; + IList e = new List(); Selection selection; string selectedTestName; +#if !DEBUG Bridge.OnActivity(this, Strings.Starting_system); WaitForOkButton(); SetValvesToDefaultState(); @@ -397,9 +398,9 @@ namespace TBF.BenchControl.Sequences if (e.Contains(Event.UiCmdStop)) goto stop; } while (!e.Contains(Event.BalanceDone)); +#endif - //-------------------------------------------------------------------------------------------- - select_procedure: + select_procedure: CloseBeginForm(); /// Make sure the CycleBeginForm is closed (after an abnormal end, etc.) diff --git a/TBF/MainWnd.cs b/TBF/MainWnd.cs index f8e5623aa..8887538ff 100644 --- a/TBF/MainWnd.cs +++ b/TBF/MainWnd.cs @@ -224,7 +224,7 @@ namespace TBF form.CloseForm(null, new EventArgs()); formThread.Join(); -#if !MUNICH +#if !DEBUG && !MUNICH if (message != null) { MessageBox.Show(Strings.The_following_components_are_in_simulation_mode_ + Environment.NewLine + message,