Ignore:
Timestamp:
Jan 24, 2025, 11:42:58 PM (9 days ago)
Author:
chronos
Message:
  • Modified: Fixed Import sources modification.
  • Modified: Catogires don't have direct object references to import sources and acronym meanings.
  • Modified: Updated acronyms example file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormCategories.pas

    r227 r230  
    181181    Item.Caption := Name;
    182182    Item.Data := ListViewSort1.List[Item.Index];
    183     Item.SubItems.Add(IntToStr(AcronymMeanings.Count));
     183    Item.SubItems.Add(IntToStr(GetAcronymMeaningsCount));
     184    Item.SubItems.Add(IntToStr(GetImportSourcesCount));
    184185    Item.Checked := Enabled;
    185186  end;
     
    211212    case Column of
    212213      0: Result := CompareString(TAcronymCategory(Item1).Name, TAcronymCategory(Item2).Name);
    213       1: Result := CompareInteger(TAcronymCategory(Item1).AcronymMeanings.Count, TAcronymCategory(Item2).AcronymMeanings.Count);
     214      1: Result := CompareInteger(TAcronymCategory(Item1).GetAcronymMeaningsCount,
     215        TAcronymCategory(Item2).GetAcronymMeaningsCount);
     216      2: Result := CompareInteger(TAcronymCategory(Item1).GetImportSourcesCount,
     217        TAcronymCategory(Item2).GetImportSourcesCount);
    214218    end;
    215219    if ListViewSort1.Order = soDown then Result := -Result;
Note: See TracChangeset for help on using the changeset viewer.