Changeset 107 for trunk/Core.pas
- Timestamp:
- Jul 19, 2024, 11:24:06 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r74 r107 4 4 5 5 uses 6 Classes, SysUtils, Theme, ApplicationInfo, Translator ;6 Classes, SysUtils, Theme, ApplicationInfo, Translator, FormEx, PersistentForm; 7 7 8 8 type … … 12 12 TCore = class(TDataModule) 13 13 ApplicationInfo: TApplicationInfo; 14 PersistentForm1: TPersistentForm; 14 15 Translator1: TTranslator; 15 16 ThemeManager1: TThemeManager; 17 procedure DataModuleCreate(Sender: TObject); 16 18 end; 17 19 … … 24 26 {$R *.lfm} 25 27 28 { TCore } 29 30 procedure TCore.DataModuleCreate(Sender: TObject); 31 begin 32 PersistentForm1.RegistryContext := ApplicationInfo.GetRegistryContext; 33 34 TFormEx.Translator := Translator1; 35 TFormEx.ThemeManager := ThemeManager1; 36 TFormEx.PersistentForm := PersistentForm1; 37 end; 38 26 39 end. 27 40
Note:
See TracChangeset
for help on using the changeset viewer.