Changeset 43 for trunk/Forms/UFormContact.pas
- Timestamp:
- Dec 2, 2021, 2:13:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.pas
r42 r43 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, ActnList, Menus, ExtCtrls, UContact, base64,UFormProperties;9 ComCtrls, ActnList, Menus, ExtCtrls, UContact, UFormProperties; 10 10 11 11 type … … 17 17 ActionList1: TActionList; 18 18 ButtonCancel: TButton; 19 ButtonNext: TButton; 19 20 ButtonOk: TButton; 21 ButtonPrevious: TButton; 20 22 EditHomeAddressCity: TEdit; 21 23 EditHomeAddressCountry: TEdit; … … 78 80 Label2: TLabel; 79 81 Label22: TLabel; 80 Label23: TLabel;81 82 Label24: TLabel; 82 83 Label25: TLabel; … … 120 121 TabSheetGeneral: TTabSheet; 121 122 TabSheetAll: TTabSheet; 123 procedure ButtonNextClick(Sender: TObject); 122 124 procedure ButtonOkClick(Sender: TObject); 125 procedure ButtonPreviousClick(Sender: TObject); 123 126 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 124 127 procedure FormCreate(Sender: TObject); … … 130 133 private 131 134 FContact: TContact; 135 FOnNext: TNotifyEvent; 136 FOnPrevious: TNotifyEvent; 132 137 FormProperties: TFormProperties; 133 138 procedure SetContact(AValue: TContact); … … 136 141 procedure SaveData; 137 142 property Contact: TContact read FContact write SetContact; 143 property OnPrevious: TNotifyEvent read FOnPrevious write FOnPrevious; 144 property OnNext: TNotifyEvent read FOnNext write FOnNext; 138 145 end; 139 146 … … 148 155 uses 149 156 UCore; 150 151 resourcestring152 SFieldEdit = 'Field edit';153 SEditFieldValue = 'Edit field value';154 157 155 158 { TFormContact } … … 204 207 begin 205 208 SaveData; 209 end; 210 211 procedure TFormContact.ButtonNextClick(Sender: TObject); 212 begin 213 if Assigned(FOnNext) then FOnNext(Self); 214 end; 215 216 procedure TFormContact.ButtonPreviousClick(Sender: TObject); 217 begin 218 if Assigned(FOnPrevious) then FOnPrevious(Self); 206 219 end; 207 220
Note:
See TracChangeset
for help on using the changeset viewer.