Changeset 16 for trunk/UCore.pas


Ignore:
Timestamp:
Feb 28, 2018, 9:44:51 AM (7 years ago)
Author:
chronos
Message:
  • Added: New Tools action Find duplicates.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r15 r16  
    2626  TCore = class(TDataModule)
    2727    AAbout: TAction;
     28    AFindDuplicate: TAction;
    2829    AFileMerge: TAction;
    2930    ASettings: TAction;
     
    5556    procedure AFileSaveAsExecute(Sender: TObject);
    5657    procedure AFileCloseExecute(Sender: TObject);
     58    procedure AFindDuplicateExecute(Sender: TObject);
    5759    procedure AHomePageExecute(Sender: TObject);
    5860    procedure ASettingsExecute(Sender: TObject);
     
    9193
    9294uses
    93   UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts;
     95  UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts, UFormFindDuplicity;
    9496
    9597resourcestring
     
    168170  FileClose;
    169171  UpdateFile;
     172end;
     173
     174procedure TCore.AFindDuplicateExecute(Sender: TObject);
     175begin
     176  FormFindDuplicity := TFormFindDuplicity.Create(nil);
     177  with FormFindDuplicity do begin
     178    Contacts := TContactsFile(DataFile).Contacts;
     179    ShowModal;
     180    Free;
     181  end;
    170182end;
    171183
Note: See TracChangeset for help on using the changeset viewer.