예제 #1
0
        // 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();
        }
예제 #2
0
 public void AddListValues(List <int> listValues)
 {
     ListValues.AddRange(listValues);
 }
예제 #3
0
 public SearchTemplate(List <int> listAddresses, List <int> listValues, bool exactMatch) : this()
 {
     ListAddresses.AddRange(listAddresses);
     ListValues.AddRange(listAddresses);
     ExactMatch = exactMatch;
 }