B2021-004: Multiple selections in the Search’s Incoming Transitions list box.
This commit is contained in:
parent
8c861c6b23
commit
4168218dc9
@ -1270,6 +1270,7 @@ namespace Volian.Controls.Library
|
|||||||
this.grpPanSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
this.grpPanSearchResults.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
this.grpPanSearchResults.Name = "grpPanSearchResults";
|
this.grpPanSearchResults.Name = "grpPanSearchResults";
|
||||||
this.grpPanSearchResults.Size = new System.Drawing.Size(369, 268);
|
this.grpPanSearchResults.Size = new System.Drawing.Size(369, 268);
|
||||||
|
this.grpPanSearchResults.MouseDown += GrpPanSearchResults_MouseDown;
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
@ -1688,6 +1689,7 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private DevComponents.DotNetBar.TabControl tabSearchTypes;
|
private DevComponents.DotNetBar.TabControl tabSearchTypes;
|
||||||
|
@ -1220,16 +1220,32 @@ namespace Volian.Controls.Library
|
|||||||
didcheck = false;
|
didcheck = false;
|
||||||
JustDidSelection = false;
|
JustDidSelection = false;
|
||||||
}
|
}
|
||||||
|
private void GrpPanSearchResults_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||||
|
{
|
||||||
|
// B2021-004: If a multiple selection occurred in the results list for Incoming Transitions, tell user that
|
||||||
|
// processing is occurring
|
||||||
|
if (!lbSrchResultsIncTrans.Enabled) FlexibleMessageBox.Show("Processing a request to open a procedure. Try again when complete.",
|
||||||
|
"Try Again", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
}
|
||||||
private bool _ProcessingSelectedValueChanged = false;
|
private bool _ProcessingSelectedValueChanged = false;
|
||||||
private void lbSrchResults_SelectedValueChanged(object sender, EventArgs e)
|
private void lbSrchResults_SelectedValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (_LoadingList) return;
|
if (_LoadingList) return;
|
||||||
if (_ProcessingSelectedValueChanged) return;
|
if (_ProcessingSelectedValueChanged) return;
|
||||||
_ProcessingSelectedValueChanged = true;
|
_ProcessingSelectedValueChanged = true;
|
||||||
|
// B2021-004: Prevent multiple selections on the Incoming Transitions listbox (disable selections
|
||||||
|
// for the listbox until all processing is done, listbox is enabled at end of method)
|
||||||
|
if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[4])
|
||||||
|
{
|
||||||
|
lbSrchResultsIncTrans.Enabled = false;
|
||||||
|
lbSrchResultsIncTrans.UseWaitCursor = true;
|
||||||
|
}
|
||||||
JustDidSelection = true;
|
JustDidSelection = true;
|
||||||
|
ListBox mylb = sender as ListBox;
|
||||||
|
|
||||||
// If the list is being refreshed, then set the selection index to -1 (no selection)
|
// If the list is being refreshed, then set the selection index to -1 (no selection)
|
||||||
if (_SearchResults.RefreshingList && lbSrchResults.SelectedIndex != -1)
|
if (mylb != null && _SearchResults.RefreshingList && mylb.SelectedIndex != -1)
|
||||||
lbSrchResultsIncTrans.SelectedIndex = lbSrchResults.SelectedIndex = -1;
|
mylb.SelectedIndex = -1;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_ItemInfo = (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[4]) ? lbSrchResultsIncTrans.SelectedValue as ItemInfo : lbSrchResults.SelectedValue as ItemInfo;
|
_ItemInfo = (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[4]) ? lbSrchResultsIncTrans.SelectedValue as ItemInfo : lbSrchResults.SelectedValue as ItemInfo;
|
||||||
@ -1263,6 +1279,11 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ProcessingSelectedValueChanged = false;
|
_ProcessingSelectedValueChanged = false;
|
||||||
|
if (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[4])
|
||||||
|
{
|
||||||
|
lbSrchResultsIncTrans.Enabled = true;
|
||||||
|
lbSrchResultsIncTrans.UseWaitCursor = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cmbResultsStyle_SelectedValueChanged(object sender, EventArgs e)
|
private void cmbResultsStyle_SelectedValueChanged(object sender, EventArgs e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user