From 23ddfe0cbd2b0829b78d6f02f0e59bd5b84654de Mon Sep 17 00:00:00 2001 From: John Date: Thu, 12 Jul 2018 13:34:10 +0000 Subject: [PATCH] =?UTF-8?q?B2017-038=20=E2=80=93=20Needed=20to=20disable?= =?UTF-8?q?=20the=20Search=20button=20for=20a=20Transition=20Search=20unti?= =?UTF-8?q?l=20a=20format=20is=20selected.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/DisplaySearch.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index 91d83845..4cbe1abe 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -160,12 +160,14 @@ namespace Volian.Controls.Library void tabSearchTypes_SelectedTabChanged(object sender, TabStripTabChangedEventArgs e) { + btnSearch.Enabled = true; if (e.NewTab == tabROSearch) { LoadROComboTree(); } else if (e.NewTab == tabTranSearch) { + btnSearch.Enabled = (cbxTranCategory.Items.Count > 0); // B2017-038 disable search button if no format selected //enable-disable doc version nodes based on version type if selected if (cbxTranVersion.SelectedIndex > -1) { @@ -263,6 +265,7 @@ namespace Volian.Controls.Library cbxTranCategory.SelectedIndex = 0; } #endregion + btnSearch.Enabled = true; // B2017-038 enable search button if when a format selected } FormatVersionList myFormatVersionList; private void LoadSearchTextListBox()