Ignore:
Timestamp:
Jun 5, 2023, 8:45:38 PM (18 months ago)
Author:
chronos
Message:
  • Modified: Remove U prefix from unit names.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormContacts.pas

    r148 r149  
    1 unit UFormContacts;
     1unit FormContacts;
    22
    33interface
     
    100100  end;
    101101
    102 var
    103   FormContacts: TFormContacts;
    104 
    105102
    106103implementation
     
    109106
    110107uses
    111   UFormContact, UCore, UVCardFile, UFormColumns;
     108  FormContact, Core, VCardFile, FormColumns;
    112109
    113110resourcestring
     
    386383procedure TFormContacts.FormShow(Sender: TObject);
    387384begin
    388   Core.Translator.TranslateComponentRecursive(Self);
    389   Core.ThemeManager1.UseTheme(Self);
    390   Core.PersistentForm1.Load(Self);
     385  Core.Core.Translator.TranslateComponentRecursive(Self);
     386  Core.Core.ThemeManager1.UseTheme(Self);
     387  Core.Core.PersistentForm1.Load(Self);
    391388  LoadFromRegistry(Context);
    392389  ReloadList;
     
    408405      FormContact.OnGetPrevious := GetPreviousContact;
    409406      FormContact.OnGetNext := GetNextContact;
    410       Contact.Properties.AddNew('VERSION', Core.DefaultVcardVersion);
     407      Contact.Properties.AddNew('VERSION', Core.Core.DefaultVcardVersion);
    411408      if FormContact.ShowModal = mrOK then begin
    412409        Contacts.Add(Contact);
    413         Core.DataFile.Modified := True;
     410        Core.Core.DataFile.Modified := True;
    414411        ReloadList;
    415412        UpdateInterface;
     
    442439        Contacts.Add(Contact);
    443440        Contact := nil;
    444         Core.DataFile.Modified := True;
     441        Core.Core.DataFile.Modified := True;
    445442        ReloadList;
    446443        UpdateInterface;
     
    548545      TempFile.Free;
    549546    end;
    550     OpenDialog1.InitialDir := ExtractFileDir(Core.LastContactFileName);
    551     OpenDialog1.FileName := ExtractFileName(Core.LastContactFileName);
     547    OpenDialog1.InitialDir := ExtractFileDir(Core.Core.LastContactFileName);
     548    OpenDialog1.FileName := ExtractFileName(Core.Core.LastContactFileName);
    552549    if OpenDialog1.Execute then begin
    553550      TContact(ListView1.Selected.Data).LoadFromFile(OpenDialog1.FileName);
    554       Core.LastContactFileName := OpenDialog1.FileName;
     551      Core.Core.LastContactFileName := OpenDialog1.FileName;
    555552      ReloadList;
    556553    end;
     
    574571      if FormContact.ShowModal = mrOK then begin
    575572        if not TContact(ListView1.Selected.Data).CompareTo(Contact) then
    576           Core.DataFile.Modified := True;
     573          Core.Core.DataFile.Modified := True;
    577574        TContact(ListView1.Selected.Data).Assign(Contact);
    578575        ReloadList;
     
    602599          PasteContacts.VCard.Contacts);
    603600      end else Contacts.AddContacts(PasteContacts.VCard.Contacts);
    604       Core.DataFile.Modified := True;
     601      Core.Core.DataFile.Modified := True;
    605602      ReloadList;
    606603      UpdateInterface;
     
    623620        Contacts.Delete(Contacts.IndexOf(ListView1.Items[I].Data));
    624621      end;
    625     Core.DataFile.Modified := True;
     622    Core.Core.DataFile.Modified := True;
    626623    ReloadList;
    627624    UpdateInterface;
     
    641638      TempFile.Free;
    642639    end;
    643     SaveDialog1.InitialDir := ExtractFileDir(Core.LastContactFileName);
     640    SaveDialog1.InitialDir := ExtractFileDir(Core.Core.LastContactFileName);
    644641    SaveDialog1.FileName := TContact(ListView1.Selected.Data).FullNameToFileName +
    645642      VCardFileExt;
    646643    if SaveDialog1.Execute then begin
    647644      TContact(ListView1.Selected.Data).SaveToFile(SaveDialog1.FileName);
    648       Core.LastContactFileName := SaveDialog1.FileName;
     645      Core.Core.LastContactFileName := SaveDialog1.FileName;
    649646    end;
    650647  end;
     
    674671begin
    675672  SaveToRegistry(Context);
    676   Core.PersistentForm1.Save(Self);
     673  Core.Core.PersistentForm1.Save(Self);
    677674end;
    678675
Note: See TracChangeset for help on using the changeset viewer.