From 55d9d589787cb9cb65dbadb536c3a4fc763a52d8 Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Thu, 4 Feb 2021 15:03:55 +0100 Subject: [PATCH] BenchControlPanel : Four main buttons are disabled on TBF start. --- TBF/UI/Shared/BenchControlPanel.cs | 12 ++++++++++++ TBF/UI/Shared/BenchControlPanel.resx | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/TBF/UI/Shared/BenchControlPanel.cs b/TBF/UI/Shared/BenchControlPanel.cs index 4db3e37e5..ac0cc766a 100644 --- a/TBF/UI/Shared/BenchControlPanel.cs +++ b/TBF/UI/Shared/BenchControlPanel.cs @@ -141,6 +141,18 @@ namespace TBF.UI.Shared colorDrainDis = System.Drawing.SystemColors.Control; colorOtherDis = System.Drawing.SystemColors.Control; + startTestBtn.Enabled = false; + startTestBtn.BackColor = colorTestsDis; + + startCycleBtn.Enabled = false; + startCycleBtn.BackColor = colorCycleDis; + + acceptResultsBtn.Enabled = false; + acceptResultsBtn.BackColor = colorAcceptDis; + + breakBtn.Enabled = false; + breakBtn.BackColor = System.Drawing.SystemColors.Control; + colorDrainHi = Color.FromArgb(Drkr(colorDrainEn.R), Drkr(colorDrainEn.G), Drkr(colorDrainEn.B)); } diff --git a/TBF/UI/Shared/BenchControlPanel.resx b/TBF/UI/Shared/BenchControlPanel.resx index 3a9e596bb..a404876c1 100644 --- a/TBF/UI/Shared/BenchControlPanel.resx +++ b/TBF/UI/Shared/BenchControlPanel.resx @@ -150,6 +150,9 @@ 8 + + False + Verdana, 14.25pt @@ -180,6 +183,9 @@ 6 + + False + Verdana, 14.25pt @@ -270,6 +276,9 @@ 0 + + False + Verdana, 14.25pt @@ -390,6 +399,9 @@ 2 + + False + Verdana, 14.25pt