Changeset 32 for trunk/Core.pas
- Timestamp:
- Jun 29, 2024, 7:58:36 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r31 r32 1 unit UCore;1 unit Core; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, FileUtil, Controls, ActnList, UDatabase, Translator,7 ApplicationInfo, PersistentForm, Forms, RegistryEx, ScaleDPI ;6 Classes, SysUtils, FileUtil, Controls, ActnList, DbEngine, Translator, 7 ApplicationInfo, PersistentForm, Forms, RegistryEx, ScaleDPI, Theme, FormMain; 8 8 9 9 type … … 18 18 AExit: TAction; 19 19 ActionList1: TActionList; 20 ThemeManager1: TThemeManager; 20 21 Translator1: TTranslator; 21 22 ImageList1: TImageList; … … 37 38 Preferences: TPreferences; 38 39 DbManager: TDbManager; 40 FormMain: TFormMain; 39 41 procedure LoadConfig; 40 42 procedure SaveConfig; … … 55 57 56 58 uses 57 UFormTables, UFormConnect, FormAbout, UFormDatabases, UFormPreferences, 58 UFormMain; 59 FormTables, FormAbout, FormDatabases, FormPreferences, FormEx; 59 60 60 61 {$R *.lfm} … … 66 67 DbManager := TDbManager.Create; 67 68 Preferences := TPreferences.Create; 69 70 TFormEx.ScaleDPI := ScaleDPI1; 71 TFormEx.Translator := Translator1; 72 TFormEx.ThemeManager := ThemeManager1; 73 TFormEx.PersistentForm := PersistentForm1; 74 75 FormMain := TFormMain.Create(nil); 76 FormMain.Show; 68 77 end; 69 78 70 79 procedure TCore.DataModuleDestroy(Sender: TObject); 71 80 begin 81 FreeAndNil(FormMain); 72 82 DbClient := nil; 73 83 FreeAndNil(Preferences); … … 89 99 with TFormDatabases.Create(nil) do 90 100 try 101 DbManager := Self.DbManager; 91 102 if ShowModal = mrOk then begin 92 103 DbClient := nil; … … 201 212 SaveConfig; 202 213 DbClient := nil; 214 Application.Terminate; 203 215 end; 204 216
Note:
See TracChangeset
for help on using the changeset viewer.