Changeset 58 for trunk/UCore.pas
- Timestamp:
- Nov 16, 2012, 9:05:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r56 r58 36 36 end; 37 37 38 { TChronisPlatform } 39 40 TChronisPlatform = class(TComponent) 41 public 42 constructor Create(AOwner: TComponent); override; 43 destructor Destroy; override; 44 procedure Init; 45 procedure Done; 46 end; 47 48 procedure Register; 49 38 50 var 39 51 Core: TCore; … … 44 56 45 57 uses 46 URegistredModules, UFormMain; 58 UFormMain, UFormConnection; 59 60 procedure Register; 61 begin 62 RegisterComponents('Chronis', [TChronisPlatform]); 63 end; 64 65 { TChronisPlatform } 66 67 constructor TChronisPlatform.Create(AOwner: TComponent); 68 begin 69 inherited Create(AOwner); 70 end; 71 72 destructor TChronisPlatform.Destroy; 73 begin 74 inherited Destroy; 75 end; 76 77 procedure TChronisPlatform.Init; 78 begin 79 Application.CreateForm(TCore, Core); 80 Application.CreateForm(TFormMain, FormMain); 81 Application.CreateForm(TFormConnection, FormConnection); 82 //Core := TCore.Create(Application); 83 //FormMain := TFormMain.Create(Application); 84 //FormConnection := TFormConnection.Create(Application); 85 end; 86 87 procedure TChronisPlatform.Done; 88 begin 89 FormConnection.Free; 90 FormMain.Free; 91 Core.Free; 92 end; 47 93 48 94 … … 80 126 try 81 127 Context := RegistryContext; 82 RegisterModules(ModuleManager);128 //RegisterModules(ModuleManager); 83 129 if ReadBoolWithDefault('ModuleManagerInstalled', False) then 84 130 ModuleManager.LoadFromRegistry(RegContext(RegistryContext.RootKey, RegistryContext.Key + '\Modules')) … … 105 151 if Assigned(FormModuleList) then FreeAndNil(FormModuleList); 106 152 ModuleManager.OnUpdate := nil; 107 UnregisterModules(ModuleManager);153 //UnregisterModules(ModuleManager); 108 154 end; 109 155
Note:
See TracChangeset
for help on using the changeset viewer.