Ignore:
Timestamp:
Nov 25, 2021, 12:27:52 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Translated contact fields titles.
  • Added: Full name, Middle name, title after and title before into contact form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContact.pas

    r32 r33  
    1818    ButtonCancel: TButton;
    1919    ButtonOk: TButton;
     20    EditDepartment: TEdit;
     21    EditFullName: TEdit;
     22    EditTitleBefore: TEdit;
     23    EditMiddleName: TEdit;
     24    EditTitleAfter: TEdit;
    2025    EditWebPage: TEdit;
    2126    EditWebPageHome: TEdit;
     
    3540    EditFaxWork: TEdit;
    3641    EditPager: TEdit;
    37     EditSurname: TEdit;
     42    EditLastName: TEdit;
    3843    EditEmail: TEdit;
    3944    EditPhone: TEdit;
    40     EditName: TEdit;
     45    EditFirstName: TEdit;
    4146    EditCellPhone: TEdit;
    4247    ImagePhoto: TImage;
     
    5762    Label22: TLabel;
    5863    Label23: TLabel;
     64    Label24: TLabel;
     65    Label25: TLabel;
     66    Label26: TLabel;
     67    Label27: TLabel;
    5968    LabelOrganization: TLabel;
    6069    Label3: TLabel;
     
    6574    Label8: TLabel;
    6675    Label9: TLabel;
     76    LabelOrganization1: TLabel;
    6777    ListView1: TListView;
    6878    MemoNotes: TMemo;
     
    163173begin
    164174  Self.Contact := Contact;
    165   EditName.Text := Contact.Fields[cfFirstName];
    166   EditSurname.Text := Contact.Fields[cfLastName];
     175  EditFullName.Text := Contact.Fields[cfFullName];
     176  EditFirstName.Text := Contact.Fields[cfFirstName];
     177  EditLastName.Text := Contact.Fields[cfLastName];
     178  EditMiddleName.Text := Contact.Fields[cfMiddleName];
     179  EditTitleAfter.Text := Contact.Fields[cfTitleAfter];
     180  EditTitleBefore.Text := Contact.Fields[cfTitleBefore];
    167181  EditCellPhone.Text := Contact.Fields[cfTelCell];
    168182  EditPhoneHome.Text := Contact.Fields[cfTelHome];
     
    172186  EditTitle.Text := Contact.Fields[cfTitle];
    173187  EditOrganization.Text := Contact.Fields[cfOrganization];
    174   EditAddress.Text := Contact.Fields[cfAdrHome];
    175   EditEmailHome.Text := Contact.Fields[cfEmailHome];
     188  EditDepartment.Text := Contact.Fields[cfDepartment];
     189  EditAddress.Text := Contact.Fields[cfHomeAddress];
     190  EditEmailHome.Text := Contact.Fields[cfEmail];
     191  EditWebPage.Text := Contact.Fields[cfUrl];
     192  EditBirthday.Text := Contact.Fields[cfDayOfBirth];
    176193
    177194  ImagePhoto.Picture.Bitmap.Clear;
     
    206223procedure TFormContact.SaveData(Contact: TContact);
    207224begin
    208   Contact.Fields[cfFirstName] := EditName.Text;
    209   Contact.Fields[cfLastName] := EditSurname.Text;
     225  Contact.Fields[cfFirstName] := EditFirstName.Text;
     226  Contact.Fields[cfLastName] := EditLastName.Text;
    210227  Contact.Fields[cfTelCell] := EditCellPhone.Text;
    211228  Contact.Fields[cfTelHome] := EditPhoneHome.Text;
     
    215232  Contact.Fields[cfTitle] := EditTitle.Text;
    216233  Contact.Fields[cfOrganization] := EditOrganization.Text;
    217   Contact.Fields[cfAdrHome] := EditAddress.Text;
    218   Contact.Fields[cfEmailHome] := EditEmailHome.Text;
     234  Contact.Fields[cfDepartment] := EditDepartment.Text;
     235  Contact.Fields[cfHomeAddress] := EditAddress.Text;
     236  Contact.Fields[cfEmail] := EditEmailHome.Text;
     237  Contact.Fields[cfUrl] := EditWebPage.Text;
     238  Contact.Fields[cfDayOfBirth] := EditBirthday.Text;
    219239end;
    220240
Note: See TracChangeset for help on using the changeset viewer.