Changeset 94 for trunk/Packages/ModularSystem/UModularSystem.pas
- Timestamp:
- Sep 7, 2012, 10:43:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/ModularSystem/UModularSystem.pas
r93 r94 44 44 procedure EnumModulesUninstall(ModuleList: TStringList); 45 45 procedure SetInstalledState(Value: Boolean); 46 constructor Create(Owner: TComponent); virtual;46 constructor Create(Owner: TComponent); override; 47 47 destructor Destroy; override; 48 48 property Running: Boolean read FRunning write SetRunning; … … 70 70 Modules: TObjectList; // TObjectList<TModule> 71 71 function FindModuleByName(Name: string): TModule; 72 function ModuleRunning(Name: string): Boolean; 72 73 procedure StartDependencies(ModuleName: string; Dependencies: TStringList); 73 74 procedure StopDependencies(ModuleName: string); … … 125 126 end; 126 127 128 function TModuleManager.ModuleRunning(Name: string): Boolean; 129 var 130 Module: TModule; 131 begin 132 Module := FindModuleByName(Name); 133 if Assigned(Module) then begin 134 Result := Module.Running; 135 end else Result := False; 136 end; 137 127 138 procedure TModuleManager.StartDependencies(ModuleName: string; Dependencies: TStringList); 128 139 var
Note:
See TracChangeset
for help on using the changeset viewer.