Changeset 93 for trunk/Packages/ModularSystem/UModularSystem.pas
- Timestamp:
- Sep 7, 2012, 10:31:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/ModularSystem/UModularSystem.pas
r92 r93 58 58 end; 59 59 60 TModuleEvent = procedure (Sender: TObject; Module: TModule) of object; 61 60 62 { TModuleManager } 61 63 … … 63 65 private 64 66 FAPI: TAPI; 67 FOnModuleChange: TModuleEvent; 65 68 procedure SetAPI(AValue: TAPI); 66 69 public … … 84 87 destructor Destroy; override; 85 88 property API: TAPI read FAPI write SetAPI; 89 property OnModuleChange: TModuleEvent read FOnModuleChange write FOnModuleChange; 86 90 end; 87 91 … … 328 332 Manager.InstallDependencies(Identification, Dependencies); 329 333 FInstalled := True; 334 if Assigned(Manager.FOnModuleChange) then 335 Manager.FOnModuleChange(Manager, Self); 330 336 end; 331 337 … … 336 342 Manager.UninstallDependencies(Identification); 337 343 FInstalled := False; 344 if Assigned(Manager.FOnModuleChange) then 345 Manager.FOnModuleChange(Manager, Self); 338 346 end; 339 347 … … 370 378 begin 371 379 FInstalled := Value; 380 if Assigned(Manager.FOnModuleChange) then 381 Manager.FOnModuleChange(Manager, Self); 372 382 end; 373 383
Note:
See TracChangeset
for help on using the changeset viewer.