Changeset 59 for trunk/Demo/UDataModuleDemo.pas
- Timestamp:
- Nov 16, 2012, 9:59:56 AM (12 years ago)
- Location:
- trunk/Demo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Demo
- Property svn:ignore
-
old new 1 1 heaptrclog.trc 2 2 lib 3 ChronisDemo.exe 4 *.dbg
-
- Property svn:ignore
-
trunk/Demo/UDataModuleDemo.pas
r58 r59 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms; 8 Classes, SysUtils, FileUtil, Forms, UCore, UApplicationInfo, URegistry, 9 Registry; 9 10 10 11 type 11 12 12 { TDataModule Test}13 { TDataModuleDemo } 13 14 14 TDataModuleTest = class(TDataModule) 15 TDataModuleDemo = class(TDataModule) 16 ApplicationInfo1: TApplicationInfo; 17 ChronisPlatform1: TChronisPlatform; 18 procedure ChronisPlatform1RegisterModules(Sender: TObject); 19 procedure ChronisPlatform1UnregisterModules(Sender: TObject); 15 20 procedure DataModuleCreate(Sender: TObject); 16 21 procedure DataModuleDestroy(Sender: TObject); … … 22 27 23 28 var 24 DataModule Test: TDataModuleTest;29 DataModuleDemo: TDataModuleDemo; 25 30 26 31 implementation … … 28 33 {$R *.lfm} 29 34 30 //uses31 //URegistredModules;35 uses 36 URegistredModules; 32 37 33 38 34 { TDataModule Test}39 { TDataModuleDemo } 35 40 36 procedure TDataModule Test.DataModuleCreate(Sender: TObject);41 procedure TDataModuleDemo.DataModuleCreate(Sender: TObject); 37 42 begin 38 //ChronisPlatform1.Init;39 //RegisterModules(Core.ModuleManager);43 ChronisPlatform1.RegistryContext := RegContext(HKEY(ApplicationInfo1.RegistryRoot), ApplicationInfo1.RegistryKey); 44 ChronisPlatform1.Init; 40 45 end; 41 46 42 procedure TDataModule Test.DataModuleDestroy(Sender: TObject);47 procedure TDataModuleDemo.ChronisPlatform1RegisterModules(Sender: TObject); 43 48 begin 44 //UnregisterModules(Core.ModuleManager); 45 //ChronisPlatform1.Done; 49 RegisterModules(Core.ModuleManager); 50 end; 51 52 procedure TDataModuleDemo.ChronisPlatform1UnregisterModules(Sender: TObject); 53 begin 54 UnregisterModules(Core.ModuleManager); 55 end; 56 57 procedure TDataModuleDemo.DataModuleDestroy(Sender: TObject); 58 begin 59 ChronisPlatform1.Done; 46 60 end; 47 61
Note:
See TracChangeset
for help on using the changeset viewer.