16 |
|
public |
17 |
|
constructor Create(ConnectionID: Integer; Ext: String); virtual; |
18 |
|
procedure InitList; |
19 |
+ |
property Ext: String read FExt; |
20 |
|
end; |
21 |
|
|
22 |
|
TExtensions = class(TTreeElement) |
48 |
|
|
49 |
|
function TExtension.GetCaption: String; |
50 |
|
begin |
51 |
< |
Result := FExt; |
51 |
> |
Result := FExt + '[' + IntToStr(GetChildCount) + ']'; |
52 |
|
end; |
53 |
|
|
54 |
|
function TExtension.GetChild(ID: Integer): TTreeElement; |
100 |
|
|
101 |
|
function TExtensions.GetChild(ID: Integer): TTreeElement; |
102 |
|
begin |
103 |
+ |
FExtensions[ID].InitList; |
104 |
|
Result := FExtensions[ID]; |
105 |
|
end; |
106 |
|
|
142 |
|
Result := nil; |
143 |
|
if Length(FExtensions) > 0 then |
144 |
|
for i := 0 to High(FExtensions) do |
145 |
< |
if FExtensions[i].GetCaption = Ext then |
145 |
> |
if FExtensions[i].Ext = Ext then |
146 |
|
begin |
147 |
|
Result := FExtensions[i]; |
148 |
|
Break; |