Changeset 227 for trunk/Forms/FormCheck.pas
- Timestamp:
- Jan 20, 2025, 11:38:55 AM (42 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormCheck.pas
r221 r227 67 67 procedure FormShow(Sender: TObject); 68 68 procedure ListViewReportData(Sender: TObject; Item: TListItem); 69 procedure MenuItemGoToClick(Sender: TObject);70 69 private 71 70 AcronymDbSummary: TAcronymDb; … … 89 88 procedure ReloadReport; 90 89 public 90 AcronymDb: TAcronymDb; 91 91 ReportItems: TReportItems; 92 92 procedure UpdateInterface; 93 procedure LoadConfig ;94 procedure SaveConfig ;93 procedure LoadConfig(RegistryContext: TRegistryContext); 94 procedure SaveConfig(RegistryContext: TRegistryContext); 95 95 end; 96 96 … … 104 104 105 105 uses 106 FormAcronyms , Core;106 FormAcronyms; 107 107 108 108 resourcestring … … 227 227 end; 228 228 229 procedure TFormCheck.MenuItemGoToClick(Sender: TObject);230 begin231 232 end;233 234 229 procedure TFormCheck.ButtonAcronymsContentClick(Sender: TObject); 235 230 var … … 238 233 FormAcronyms := TFormAcronyms.Create(Self); 239 234 try 235 FormAcronyms.AcronymDb := AcronymDb; 240 236 FormAcronyms.Acronyms := AcronymDbContent.Acronyms; 241 237 FormAcronyms.Caption := SContentAcronyms; … … 252 248 FormAcronyms := TFormAcronyms.Create(Self); 253 249 try 250 FormAcronyms.AcronymDb := AcronymDb; 254 251 FormAcronyms.Acronyms := AcronymDbSummary.Acronyms; 255 252 FormAcronyms.Caption := SSummaryAcronyms; … … 706 703 end; 707 704 708 procedure TFormCheck.LoadConfig ;705 procedure TFormCheck.LoadConfig(RegistryContext: TRegistryContext); 709 706 begin 710 707 with TRegistryEx.Create do 711 708 try 712 RootKey := Registry RootHKEY[Core.Core.ApplicationInfo1.RegistryRoot];713 OpenKey( Core.Core.ApplicationInfo1.RegistryKey, True);709 RootKey := RegistryContext.RootKey; 710 OpenKey(RegistryContext.Key, True); 714 711 EditSummaryStart.Text := ReadStringWithDefault('SummaryStart', 'ACRONYMS AND ABBREVIATIONS'); 715 712 EditSummaryEnd.Text := ReadStringWithDefault('SummaryEnd', 'Appendix'); … … 721 718 end; 722 719 723 procedure TFormCheck.SaveConfig ;720 procedure TFormCheck.SaveConfig(RegistryContext: TRegistryContext); 724 721 begin 725 722 with TRegistryEx.Create do 726 723 try 727 RootKey := Registry RootHKEY[Core.Core.ApplicationInfo1.RegistryRoot];728 OpenKey( Core.Core.ApplicationInfo1.RegistryKey, True);724 RootKey := RegistryContext.RootKey; 725 OpenKey(RegistryContext.Key, True); 729 726 WriteString('SummaryStart', EditSummaryStart.Text); 730 727 WriteString('SummaryEnd', EditSummaryEnd.Text);
Note:
See TracChangeset
for help on using the changeset viewer.