FFreeNotifies: TList<TComponent>;
....
procedure TComponent.RemoveFreeNotifications;
begin
if FFreeNotifies <> nil then
begin
while Assigned(FFreeNotifies) and (FFreeNotifies.Count > 0) do
TComponent(FFreeNotifies[FFreeNotifies.Count - 1]).Notification(Self, opRemove);
FreeAndNil(FFreeNotifies);
end;
end;
Ну нет слов...
....
procedure TComponent.RemoveFreeNotifications;
begin
if FFreeNotifies <> nil then
begin
while Assigned(FFreeNotifies) and (FFreeNotifies.Count > 0) do
TComponent(FFreeNotifies[FFreeNotifies.Count - 1]).Notification(Self, opRemove);
FreeAndNil(FFreeNotifies);
end;
end;
Ну нет слов...
Комментариев нет:
Отправить комментарий