C2025-023 - Electronic Procedures - Modifications to PROMS (checkin 4 - added some comments)

This commit is contained in:
2025-04-10 09:05:42 -04:00
parent d392131005
commit 9fdbdb05f4
2 changed files with 14 additions and 1 deletions

View File

@@ -168,6 +168,7 @@ namespace Volian.Controls.Library
foreach (KeyValuePair<string, ListBoxMulti> pair in _DicMultiRO)
{
//clear all items at start in case items were autoselected - bug in Winforms ListBox
pair.Value.ClearSelected();
string val = MyConfig.GetValue("EP", pair.Key);
if (val != null && val != "")
@@ -180,6 +181,10 @@ namespace Volian.Controls.Library
pair.Value.SetSelected(pair.Value.FindString(text), true);
}
}
//set this to -1 after initial setting of values
//this will help to fix bug in Winforms ListBox
//that autoselects first item when no items are selected
pair.Value.singleselectedindex = -1;
}