Nexus.Client.ModManagement.Scripting.UIUtil.ShowSelect C# (CSharp) Method

ShowSelect() private method

Displays a selection form to the user.
This method is called by the SynchronizationContext in order to create and execute the form on the appropriate thread.
private ShowSelect ( IList p_lstOptions, string p_strTitle, bool p_booSelectMany ) : string[]
p_lstOptions IList The options from which to select.
p_strTitle string The title of the selection form.
p_booSelectMany bool Whether more than one items can be selected.
return string[]
		private string[] ShowSelect(IList<SelectOption> p_lstOptions, string p_strTitle, bool p_booSelectMany)
		{
			SelectForm sfmSelectForm = new SelectForm(p_lstOptions, p_strTitle, p_booSelectMany);
			sfmSelectForm.ShowDialog();
			return sfmSelectForm.SelectedOptionNames;
		}