Changeset 9 for trunk/Forms/UFormContact.pas
- Timestamp:
- Feb 1, 2018, 1:41:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.pas
r8 r9 16 16 ButtonCancel: TButton; 17 17 ButtonOk: TButton; 18 EditWebPage: TEdit; 19 EditWebPageHome: TEdit; 20 EditWebPageWork: TEdit; 21 EditEmailHome: TEdit; 22 EditEmailWork: TEdit; 23 EditBirthday: TEdit; 24 EditTitle: TEdit; 25 EditAddress: TEdit; 26 EditOrganization: TEdit; 27 EditPhoneHome: TEdit; 28 EditPhoneWork: TEdit; 29 EditCellPhoneHome: TEdit; 30 EditCellPhoneWork: TEdit; 31 EditFax: TEdit; 32 EditFaxHome: TEdit; 33 EditFaxWork: TEdit; 34 EditPager: TEdit; 18 35 EditSurname: TEdit; 19 36 EditEmail: TEdit; … … 22 39 EditCellPhone: TEdit; 23 40 Label1: TLabel; 41 Label10: TLabel; 42 Label11: TLabel; 43 Label12: TLabel; 44 Label13: TLabel; 45 Label14: TLabel; 46 Label15: TLabel; 47 Label16: TLabel; 48 Label17: TLabel; 49 Label18: TLabel; 50 Label19: TLabel; 24 51 Label2: TLabel; 52 Label20: TLabel; 53 Label21: TLabel; 54 Label22: TLabel; 55 LabelOrganization: TLabel; 25 56 Label3: TLabel; 26 57 Label4: TLabel; 27 58 Label5: TLabel; 28 59 Label6: TLabel; 60 Label7: TLabel; 61 Label8: TLabel; 62 Label9: TLabel; 29 63 ListView1: TListView; 30 64 MemoNotes: TMemo; … … 37 71 procedure FormShow(Sender: TObject); 38 72 procedure ListView1Data(Sender: TObject; Item: TListItem); 73 procedure TabSheetAllShow(Sender: TObject); 39 74 private 40 75 Contact: TContact; … … 61 96 Core.PersistentForm1.Load(Self); 62 97 PageControlContact.TabIndex := 0; 63 ReloadFields;64 98 end; 65 99 … … 71 105 Item.SubItems.Add(Contact.Fields[Index]); 72 106 end; 107 end; 108 109 procedure TFormContact.TabSheetAllShow(Sender: TObject); 110 begin 111 ReloadFields; 73 112 end; 74 113 … … 96 135 begin 97 136 Self.Contact := Contact; 98 ReloadFields;99 137 EditName.Text := Contact.FirstName; 100 138 EditSurname.Text := Contact.LastName; 101 139 EditCellPhone.Text := Contact.TelCell; 102 EditPhone.Text := Contact.TelHome; 140 EditPhoneHome.Text := Contact.TelHome; 141 EditPhoneWork.Text := Contact.TelWork; 103 142 EditEmail.Text := Contact.EmailHome; 104 143 MemoNotes.Lines.Text := Contact.Note; 144 EditTitle.Text := Contact.Title; 145 EditOrganization.Text := Contact.Organization; 146 EditAddress.Text := Contact.AdrHome; 147 EditEmailHome.Text := Contact.EmailHome; 105 148 end; 106 149 … … 110 153 Contact.LastName := EditSurname.Text; 111 154 Contact.TelCell := EditCellPhone.Text; 112 Contact.TelHome := EditPhone.Text; 155 Contact.TelHome := EditPhoneHome.Text; 156 Contact.TelWork := EditPhoneWork.Text; 113 157 Contact.EmailHome := EditEmail.Text; 114 158 Contact.Note := MemoNotes.Lines.Text; 159 Contact.Title := EditTitle.Text; 160 Contact.Organization := EditOrganization.Text; 161 Contact.AdrHome := EditAddress.Text; 162 Contact.EmailHome := EditEmailHome.Text; 115 163 end; 116 164
Note:
See TracChangeset
for help on using the changeset viewer.