Changeset 82 for trunk/Forms/UFormContacts.pas
- Timestamp:
- Dec 21, 2021, 5:16:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.pas
r77 r82 203 203 for J := 0 to FilterItems.Count - 1 do begin 204 204 if FilterItems[J].FieldIndex = cfNone then begin 205 for K := 0 to TContact(List.Items[I]). Parent.Fields.Count - 1 do begin205 for K := 0 to TContact(List.Items[I]).GetFields.Count - 1 do begin 206 206 if Pos(UTF8LowerCase(FilterItems[J].Value), 207 UTF8LowerCase(TContact(List.Items[I]).Fields[TContact(List.Items[I]). Parent.Fields[K].Index])) > 0 then begin207 UTF8LowerCase(TContact(List.Items[I]).Fields[TContact(List.Items[I]).GetFields[K].Index])) > 0 then begin 208 208 Inc(FoundCount); 209 209 Break; … … 286 286 for I := 0 to ListView1.Columns.Count - 1 do begin 287 287 if Assigned(Contacts) and Assigned(Contacts.ContactsFile) then begin 288 Field := Contacts.ContactsFile.Fields.GetByIndex(ListViewColumns[I]);288 Field := TContact.GetFields.GetByIndex(ListViewColumns[I]); 289 289 if Assigned(Field) then 290 290 ListView1.Columns[I].Caption := Field.Title; … … 312 312 Contact := TContact.Create; 313 313 try 314 Contact. Parent:= Contacts.ContactsFile;314 Contact.ContactsFile := Contacts.ContactsFile; 315 315 FormContact.Contact := Contact; 316 316 FormContact.OnGetPrevious := GetPreviousContact; 317 317 FormContact.OnGetNext := GetNextContact; 318 Contact.Properties.AddNew('VERSION', Core.DefaultVcardVersion); 318 319 if FormContact.ShowModal = mrOK then begin 319 320 Contacts.Add(Contact); … … 341 342 Contact := TContact.Create; 342 343 try 343 Contact. Parent:= Contacts.ContactsFile;344 Contact.ContactsFile := Contacts.ContactsFile; 344 345 Contact.Assign(TContact(ListView1.Selected.Data)); 345 346 FormContact.Contact := Contact; … … 442 443 Contact := TContact.Create; 443 444 try 444 Contact. Parent:= Contacts.ContactsFile;445 Contact.ContactsFile := Contacts.ContactsFile; 445 446 Contact.Assign(TContact(ListView1.Selected.Data)); 446 447 FormContact.Contact := Contact;
Note:
See TracChangeset
for help on using the changeset viewer.