Added code to refresh transition search elements before doing long running query. Fixed incorrect search results when transition search tab selected with an open procedure

Changed drop down elements from Windows Forms ComboBox to DevComponents ComboBox.
This commit is contained in:
Rich
2015-04-09 20:33:17 +00:00
parent 7ef80e2e97
commit 499cd0a1bf
2 changed files with 25 additions and 13 deletions

View File

@@ -169,6 +169,7 @@ namespace Volian.Controls.Library
this.Cursor = Cursors.WaitCursor;
if (myFormatVersionList == null)
{
this.Refresh();
myFormatVersionList = FormatVersionList.GetFormatVersions();
cbxTranVersion.DisplayMember = "Title";
int lastLastFormatID = 0;
@@ -309,7 +310,21 @@ namespace Volian.Controls.Library
uncheckNodes[0].Enabled = false;
uncheckNodes.Remove(uncheckNodes[0]);
}
lstCheckedDocVersions.Clear();
if (lstCheckedDocVersions.Count > 0)
{
if (MessageBox.Show(this, "Do you want to expand to all relevant procedure sets for the selected format?", "Expand Procedure Sets", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
lstCheckedDocVersions.Clear();
foreach (DevComponents.AdvTree.Node n in dicSelectedDocVersionNodes.Keys)
uncheckNodes.Add(n);
while (uncheckNodes.Count > 0)
{
uncheckNodes[0].Checked = false;
uncheckNodes.Remove(uncheckNodes[0]);
}
dicSelectedDocVersionNodes.Clear();
}
}
this.Cursor = Cursors.Default;
}