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

@ -52,13 +52,13 @@ namespace Volian.Controls.Library
this.tabSearchTypes = new DevComponents.DotNetBar.TabControl(); this.tabSearchTypes = new DevComponents.DotNetBar.TabControl();
this.tabControlPanel5 = new DevComponents.DotNetBar.TabControlPanel(); this.tabControlPanel5 = new DevComponents.DotNetBar.TabControlPanel();
this.pnlTranCategory = new System.Windows.Forms.Panel(); this.pnlTranCategory = new System.Windows.Forms.Panel();
this.cbxTranCategory = new System.Windows.Forms.ComboBox(); this.cbxTranCategory = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.lblTranCategory = new System.Windows.Forms.Label(); this.lblTranCategory = new System.Windows.Forms.Label();
this.pnlTranFormat = new System.Windows.Forms.Panel(); this.pnlTranFormat = new System.Windows.Forms.Panel();
this.cbxTranFormat = new System.Windows.Forms.ComboBox(); this.cbxTranFormat = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.lblTranFormat = new System.Windows.Forms.Label(); this.lblTranFormat = new System.Windows.Forms.Label();
this.pnlTranVersion = new System.Windows.Forms.Panel(); this.pnlTranVersion = new System.Windows.Forms.Panel();
this.cbxTranVersion = new System.Windows.Forms.ComboBox(); this.cbxTranVersion = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.lblTranVersion = new System.Windows.Forms.Label(); this.lblTranVersion = new System.Windows.Forms.Label();
this.tabTranSearch = new DevComponents.DotNetBar.TabItem(this.components); this.tabTranSearch = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel(); this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel();
@ -225,8 +225,7 @@ namespace Volian.Controls.Library
// cbxTranCategory // cbxTranCategory
// //
this.cbxTranCategory.Dock = System.Windows.Forms.DockStyle.Fill; this.cbxTranCategory.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTranCategory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxTranCategory.WatermarkText = "Select Cateogry of Transitions";
this.cbxTranCategory.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.cbxTranCategory.Location = new System.Drawing.Point(83, 1); this.cbxTranCategory.Location = new System.Drawing.Point(83, 1);
this.cbxTranCategory.Margin = new System.Windows.Forms.Padding(2); this.cbxTranCategory.Margin = new System.Windows.Forms.Padding(2);
this.cbxTranCategory.Name = "cbxTranCategory"; this.cbxTranCategory.Name = "cbxTranCategory";
@ -260,8 +259,7 @@ namespace Volian.Controls.Library
// cbxTranFormat // cbxTranFormat
// //
this.cbxTranFormat.Dock = System.Windows.Forms.DockStyle.Fill; this.cbxTranFormat.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTranFormat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxTranFormat.WatermarkText = "Select Style of Transitions";
this.cbxTranFormat.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.cbxTranFormat.Location = new System.Drawing.Point(76, 1); this.cbxTranFormat.Location = new System.Drawing.Point(76, 1);
this.cbxTranFormat.Margin = new System.Windows.Forms.Padding(2); this.cbxTranFormat.Margin = new System.Windows.Forms.Padding(2);
this.cbxTranFormat.Name = "cbxTranFormat"; this.cbxTranFormat.Name = "cbxTranFormat";
@ -295,8 +293,7 @@ namespace Volian.Controls.Library
// cbxTranVersion // cbxTranVersion
// //
this.cbxTranVersion.Dock = System.Windows.Forms.DockStyle.Fill; this.cbxTranVersion.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxTranVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbxTranVersion.WatermarkText = "Select Format for Transitions";
this.cbxTranVersion.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.cbxTranVersion.Location = new System.Drawing.Point(76, 1); this.cbxTranVersion.Location = new System.Drawing.Point(76, 1);
this.cbxTranVersion.Margin = new System.Windows.Forms.Padding(2); this.cbxTranVersion.Margin = new System.Windows.Forms.Padding(2);
this.cbxTranVersion.Name = "cbxTranVersion"; this.cbxTranVersion.Name = "cbxTranVersion";
@ -1544,13 +1541,13 @@ namespace Volian.Controls.Library
//transition search controls //transition search controls
private System.Windows.Forms.Panel pnlTranVersion; private System.Windows.Forms.Panel pnlTranVersion;
private System.Windows.Forms.Label lblTranVersion; private System.Windows.Forms.Label lblTranVersion;
private System.Windows.Forms.ComboBox cbxTranVersion; private DevComponents.DotNetBar.Controls.ComboBoxEx cbxTranVersion;
private System.Windows.Forms.Panel pnlTranFormat; private System.Windows.Forms.Panel pnlTranFormat;
private System.Windows.Forms.Label lblTranFormat; private System.Windows.Forms.Label lblTranFormat;
private System.Windows.Forms.ComboBox cbxTranFormat; private DevComponents.DotNetBar.Controls.ComboBoxEx cbxTranFormat;
private System.Windows.Forms.Panel pnlTranCategory; private System.Windows.Forms.Panel pnlTranCategory;
private System.Windows.Forms.Label lblTranCategory; private System.Windows.Forms.Label lblTranCategory;
private System.Windows.Forms.ComboBox cbxTranCategory; private DevComponents.DotNetBar.Controls.ComboBoxEx cbxTranCategory;
//end transition search controls //end transition search controls
} }
} }

View File

@ -169,6 +169,7 @@ namespace Volian.Controls.Library
this.Cursor = Cursors.WaitCursor; this.Cursor = Cursors.WaitCursor;
if (myFormatVersionList == null) if (myFormatVersionList == null)
{ {
this.Refresh();
myFormatVersionList = FormatVersionList.GetFormatVersions(); myFormatVersionList = FormatVersionList.GetFormatVersions();
cbxTranVersion.DisplayMember = "Title"; cbxTranVersion.DisplayMember = "Title";
int lastLastFormatID = 0; int lastLastFormatID = 0;
@ -309,7 +310,21 @@ namespace Volian.Controls.Library
uncheckNodes[0].Enabled = false; uncheckNodes[0].Enabled = false;
uncheckNodes.Remove(uncheckNodes[0]); 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; this.Cursor = Cursors.Default;
} }