Changeset 149 for trunk/Forms/FormProperties.pas
- Timestamp:
- Jun 5, 2023, 8:45:38 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormProperties.pas
r148 r149 1 unit UFormProperties;1 unit FormProperties; 2 2 3 3 interface … … 76 76 end; 77 77 78 var79 FormProperties: TFormProperties;80 81 78 82 79 implementation … … 85 82 86 83 uses 87 UFormProperty, UCore, Common;84 FormProperty, Core, Common; 88 85 89 86 resourcestring … … 207 204 procedure TFormProperties.FormShow(Sender: TObject); 208 205 begin 209 Core. PersistentForm1.Load(Self);206 Core.Core.PersistentForm1.Load(Self); 210 207 ReloadList; 211 208 UpdateInterface; … … 269 266 OpenDialog1.Filter := STextFiles + '|*' + TextFileExt + '|' + SAllFiles + '|*.*'; 270 267 OpenDialog1.DefaultExt := TextFileExt; 271 OpenDialog1.InitialDir := ExtractFileDir(Core. LastPropertyValueFileName);272 OpenDialog1.FileName := ExtractFileName(Core. LastPropertyValueFileName);268 OpenDialog1.InitialDir := ExtractFileDir(Core.Core.LastPropertyValueFileName); 269 OpenDialog1.FileName := ExtractFileName(Core.Core.LastPropertyValueFileName); 273 270 if OpenDialog1.Execute then begin 274 271 TContactProperty(ListView1.Selected.Data).Value := LoadFileToStr(OpenDialog1.FileName); 275 Core. LastPropertyValueFileName := OpenDialog1.FileName;272 Core.Core.LastPropertyValueFileName := OpenDialog1.FileName; 276 273 ReloadList; 277 274 end; … … 324 321 SaveDialog1.Filter := STextFiles + '|*' + TextFileExt + '|' + SAllFiles + '|*.*'; 325 322 SaveDialog1.DefaultExt := TextFileExt; 326 SaveDialog1.InitialDir := ExtractFileDir(Core. LastPropertyValueFileName);323 SaveDialog1.InitialDir := ExtractFileDir(Core.Core.LastPropertyValueFileName); 327 324 SaveDialog1.FileName := SValue + TextFileExt; 328 325 if SaveDialog1.Execute then begin 329 326 SaveStringToFile(TContactProperty(ListView1.Selected.Data).Value, SaveDialog1.FileName); 330 Core. LastPropertyValueFileName := SaveDialog1.FileName;327 Core.Core.LastPropertyValueFileName := SaveDialog1.FileName; 331 328 end; 332 329 end; … … 342 339 ); 343 340 begin 344 Core. PersistentForm1.Save(Self);341 Core.Core.PersistentForm1.Save(Self); 345 342 end; 346 343 … … 349 346 I: Integer; 350 347 begin 351 Core. Translator.TranslateComponentRecursive(Self);352 Core. ThemeManager1.UseTheme(Self);348 Core.Core.Translator.TranslateComponentRecursive(Self); 349 Core.Core.ThemeManager1.UseTheme(Self); 353 350 354 351 FProperties := nil;
Note:
See TracChangeset
for help on using the changeset viewer.