예제 #1
0
        internal void Register(BaseSelectItem selectItem)
        {
            if (selectItem == null)
            {
                return;
            }

            if (selectItems == null)
            {
                selectItems = new List <BaseSelectItem>();
            }

            if (!selectItems.Contains(selectItem))
            {
                selectItems.Add(selectItem);

                ClassMapper.Dirty();

                //if ( selectItems?.Count > 1 ) // must find a better way to refresh
                //    StateHasChanged();
            }
        }
예제 #2
0
 internal bool IsSelected(BaseSelectItem selectItem)
 {
     return(selectedValues?.Contains(selectItem?.Value) == true);
 }