source: trunk/Core.pas

Last change on this file was 107, checked in by chronos, 4 months ago
  • Fixed: Full screen mode switching on Windows.
  • Modified: Updated Common package.
File size: 682 bytes
Line 
1unit Core;
2
3interface
4
5uses
6 Classes, SysUtils, Theme, ApplicationInfo, Translator, FormEx, PersistentForm;
7
8type
9
10 { TCore }
11
12 TCore = class(TDataModule)
13 ApplicationInfo: TApplicationInfo;
14 PersistentForm1: TPersistentForm;
15 Translator1: TTranslator;
16 ThemeManager1: TThemeManager;
17 procedure DataModuleCreate(Sender: TObject);
18 end;
19
20var
21 Core: TCore;
22
23
24implementation
25
26{$R *.lfm}
27
28{ TCore }
29
30procedure TCore.DataModuleCreate(Sender: TObject);
31begin
32 PersistentForm1.RegistryContext := ApplicationInfo.GetRegistryContext;
33
34 TFormEx.Translator := Translator1;
35 TFormEx.ThemeManager := ThemeManager1;
36 TFormEx.PersistentForm := PersistentForm1;
37end;
38
39end.
40
Note: See TracBrowser for help on using the repository browser.