ACR_ChooserCreator.ChooserLists.SearchAreas C# (CSharp) Method

SearchAreas() public static method

public static SearchAreas ( CLRScriptBase script, User currentUser, string searchString ) : void
script CLRScriptFramework.CLRScriptBase
currentUser User
searchString string
return void
        public static void SearchAreas(CLRScriptBase script, User currentUser, string searchString)
        {
            script.ClearListBox(currentUser.Id, "SCREEN_DMC_CHOOSER", "LISTBOX_ACR_CHOOSER_AREAS");
            foreach (ALFA.Shared.ActiveArea area in AreaList)
            {
                if (area.LocalizedName.ToLower().Contains(searchString.ToLower()))
                {
                    script.AddListBoxRow(currentUser.Id, "SCREEN_DMC_CHOOSER", "LISTBOX_ACR_CHOOSER_AREAS", area.Id.ToString(), "LISTBOX_ITEM_TEXT=  " + area.DisplayName, "", "5=" + area.Id.ToString(), "");
                }
            }
        }