Ignore:
Timestamp:
Sep 7, 2012, 10:43:02 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Zobrazení stránek s a bez modulu User.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/ModularSystem/UModularSystem.pas

    r93 r94  
    4444    procedure EnumModulesUninstall(ModuleList: TStringList);
    4545    procedure SetInstalledState(Value: Boolean);
    46     constructor Create(Owner: TComponent); virtual;
     46    constructor Create(Owner: TComponent); override;
    4747    destructor Destroy; override;
    4848    property Running: Boolean read FRunning write SetRunning;
     
    7070    Modules: TObjectList; // TObjectList<TModule>
    7171    function FindModuleByName(Name: string): TModule;
     72    function ModuleRunning(Name: string): Boolean;
    7273    procedure StartDependencies(ModuleName: string; Dependencies: TStringList);
    7374    procedure StopDependencies(ModuleName: string);
     
    125126end;
    126127
     128function TModuleManager.ModuleRunning(Name: string): Boolean;
     129var
     130  Module: TModule;
     131begin
     132  Module := FindModuleByName(Name);
     133  if Assigned(Module) then begin
     134    Result := Module.Running;
     135  end else Result := False;
     136end;
     137
    127138procedure TModuleManager.StartDependencies(ModuleName: string; Dependencies: TStringList);
    128139var
Note: See TracChangeset for help on using the changeset viewer.