Changeset 227 for trunk/Forms/FormMain.pas
- Timestamp:
- Jan 20, 2025, 11:38:55 AM (42 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r225 r227 46 46 CheckBoxCaseSensitive: TCheckBox; 47 47 CoolBar1: TCoolBar; 48 JobProgressView1: TJobProgressView; 48 49 LastOpenedList1: TLastOpenedList; 49 50 ListViewAcronyms: TListView; … … 272 273 FormCheck := TFormCheck.Create(Self); 273 274 try 274 FormCheck.LoadConfig; 275 FormCheck.LoadConfig(TRegistryContext.Create(Core.Core.ApplicationInfo1.RegistryRoot, 276 Core.Core.ApplicationInfo1.RegistryKey)); 275 277 FormCheck.ShowModal; 276 FormCheck.SaveConfig; 278 FormCheck.SaveConfig(TRegistryContext.Create(Core.Core.ApplicationInfo1.RegistryRoot, 279 Core.Core.ApplicationInfo1.RegistryKey)); 277 280 finally 278 281 FreeAndNil(FormCheck); … … 286 289 FormExport := TFormExport.Create(Self); 287 290 try 291 FormExport.AcronymDb := Core.Core.AcronymDb; 288 292 FormExport.ShowModal; 289 293 finally … … 322 326 begin 323 327 AFileClose.Execute; 324 if not Assigned(Core.Core.AcronymDb) 328 if not Assigned(Core.Core.AcronymDb) then begin 325 329 Core.Core.AcronymDb := TAcronymDb.Create; 326 330 Core.Core.AcronymDb.FileName := DefaultFileName; … … 406 410 FormImport := TFormImport.Create(Self); 407 411 try 412 FormImport.AcronymDb := Core.Core.AcronymDb; 408 413 FormImport.ShowModal; 409 414 UpdateAcronymsList; … … 422 427 if Assigned(ListViewAcronyms.Selected) then 423 428 FormAcronyms.FocusAcronym := ListViewAcronyms.Selected.Data; 429 FormAcronyms.AcronymDb := Core.Core.AcronymDb; 424 430 FormAcronyms.Acronyms := Core.Core.AcronymDb.Acronyms; 425 431 FormAcronyms.ShowModal; … … 435 441 ImportTotalItemCount := 0; 436 442 Core.Core.AcronymDb.AddedCount := 0; 437 Core.Core.JobProgressView1.AddJob(SProcessImportSources, ProcessImportsJob);438 Core.Core.JobProgressView1.Start;443 JobProgressView1.AddJob(SProcessImportSources, ProcessImportsJob); 444 JobProgressView1.Start; 439 445 ShowMessage(Format(SAddedCount, [ImportTotalItemCount, Core.Core.AcronymDb.AddedCount])); 440 446 UpdateAcronymsList; … … 493 499 FormAcronyms := TFormAcronyms.Create(Self); 494 500 try 501 FormAcronyms.AcronymDb := Core.Core.AcronymDb; 495 502 FormAcronyms.Acronyms := Core.Core.AcronymDb.Acronyms; 496 503 FormAcronyms.ShowModal; … … 508 515 FormCategories := TFormCategories.Create(Self); 509 516 try 517 FormCategories.AcronymDb := Core.Core.AcronymDb; 510 518 FormCategories.Categories := Core.Core.AcronymDb.Categories; 511 519 FormCategories.ShowModal; … … 529 537 FormImportFormats := TFormImportFormats.Create(Self); 530 538 try 539 FormImportFormats.AcronymDb := Core.Core.AcronymDb; 531 540 FormImportFormats.ImportFormats := Core.Core.AcronymDb.ImportFormats; 532 541 FormImportFormats.ShowModal; … … 544 553 try 545 554 FormImportSources.ImportSources := Core.Core.AcronymDb.ImportSources; 555 FormImportSources.AcronymDb := Core.Core.AcronymDb; 546 556 FormImportSources.ShowModal; 547 557 UpdateAcronymsList;
Note:
See TracChangeset
for help on using the changeset viewer.