Changeset 287 for trunk/Forms/UFormUnitKind.pas
- Timestamp:
- Mar 24, 2019, 2:26:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormUnitKind.pas
r277 r287 20 20 LabelHealth: TLabel; 21 21 SpinEditHealth: TSpinEdit; 22 procedure ButtonOkClick(Sender: TObject); 22 23 private 23 24 public 24 FUnitKind: TUnitKind; 25 25 procedure Load(UnitKind: TUnitKind); 26 26 procedure Save(UnitKind: TUnitKind); 27 procedure SetUnitKind(AValue: TUnitKind); 28 public 29 property UnitKind: TUnitKind read FUnitKind write SetUnitKind; 27 30 end; 28 31 … … 48 51 end; 49 52 53 procedure TFormUnitKind.ButtonOkClick(Sender: TObject); 54 begin 55 Save(FUnitKind); 56 end; 57 58 procedure TFormUnitKind.SetUnitKind(AValue: TUnitKind); 59 begin 60 if FUnitKind = AValue then Exit; 61 FUnitKind := AValue; 62 if Assigned(AValue) then Load(FUnitKind); 63 end; 64 50 65 end. 51 66
Note:
See TracChangeset
for help on using the changeset viewer.