Changeset 33 for trunk/Forms/UFormContact.pas
- Timestamp:
- Nov 25, 2021, 12:27:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.pas
r32 r33 18 18 ButtonCancel: TButton; 19 19 ButtonOk: TButton; 20 EditDepartment: TEdit; 21 EditFullName: TEdit; 22 EditTitleBefore: TEdit; 23 EditMiddleName: TEdit; 24 EditTitleAfter: TEdit; 20 25 EditWebPage: TEdit; 21 26 EditWebPageHome: TEdit; … … 35 40 EditFaxWork: TEdit; 36 41 EditPager: TEdit; 37 Edit Surname: TEdit;42 EditLastName: TEdit; 38 43 EditEmail: TEdit; 39 44 EditPhone: TEdit; 40 Edit Name: TEdit;45 EditFirstName: TEdit; 41 46 EditCellPhone: TEdit; 42 47 ImagePhoto: TImage; … … 57 62 Label22: TLabel; 58 63 Label23: TLabel; 64 Label24: TLabel; 65 Label25: TLabel; 66 Label26: TLabel; 67 Label27: TLabel; 59 68 LabelOrganization: TLabel; 60 69 Label3: TLabel; … … 65 74 Label8: TLabel; 66 75 Label9: TLabel; 76 LabelOrganization1: TLabel; 67 77 ListView1: TListView; 68 78 MemoNotes: TMemo; … … 163 173 begin 164 174 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]; 167 181 EditCellPhone.Text := Contact.Fields[cfTelCell]; 168 182 EditPhoneHome.Text := Contact.Fields[cfTelHome]; … … 172 186 EditTitle.Text := Contact.Fields[cfTitle]; 173 187 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]; 176 193 177 194 ImagePhoto.Picture.Bitmap.Clear; … … 206 223 procedure TFormContact.SaveData(Contact: TContact); 207 224 begin 208 Contact.Fields[cfFirstName] := Edit Name.Text;209 Contact.Fields[cfLastName] := Edit Surname.Text;225 Contact.Fields[cfFirstName] := EditFirstName.Text; 226 Contact.Fields[cfLastName] := EditLastName.Text; 210 227 Contact.Fields[cfTelCell] := EditCellPhone.Text; 211 228 Contact.Fields[cfTelHome] := EditPhoneHome.Text; … … 215 232 Contact.Fields[cfTitle] := EditTitle.Text; 216 233 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; 219 239 end; 220 240
Note:
See TracChangeset
for help on using the changeset viewer.