// TODO: async preload and cache icons? internal void ReloadViewList() { ListValues.Clear(); ListValues.AddRange( PluginList.Select(p => new CustomListTableData.CustomCellInfo( p.Plugin.Name, $"{p.Plugin.Author} <size=80%>{p.Plugin.Version}</size>", p.Icon, Enumerable.Empty <Sprite>() .AppendIf(p.Plugin.IsBare, Helpers.LibrarySprite) .AppendIf(p.State == PluginState.Disabled, Helpers.XSprite) .AppendIf(p.State == PluginState.Enabled && p.Plugin.RuntimeOptions == RuntimeOptions.DynamicInit, Helpers.OSprite) .AppendIf(p.State == PluginState.Ignored, Helpers.WarnSprite)))); customListTableData?.tableView?.ReloadData(); }
public void AddListValues(List <int> listValues) { ListValues.AddRange(listValues); }
public SearchTemplate(List <int> listAddresses, List <int> listValues, bool exactMatch) : this() { ListAddresses.AddRange(listAddresses); ListValues.AddRange(listAddresses); ExactMatch = exactMatch; }