Changeset 288 for trunk/Forms/UFormServer.pas
- Timestamp:
- Mar 24, 2019, 10:52:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormServer.pas
r243 r288 22 22 Label3: TLabel; 23 23 SpinEdit1: TSpinEdit; 24 procedure ButtonOkClick(Sender: TObject); 24 25 procedure FormShow(Sender: TObject); 25 26 private 26 27 public27 FServerInfo: TServerInfo; 28 procedure SetServerInfo(AValue: TServerInfo); 28 29 procedure Load(Server: TServerInfo); 29 30 procedure Save(Server: TServerInfo); 31 public 32 property ServerInfo: TServerInfo read FServerInfo write SetServerInfo; 30 33 end; 31 34 … … 47 50 end; 48 51 52 procedure TFormServer.ButtonOkClick(Sender: TObject); 53 begin 54 Save(FServerInfo); 55 end; 56 57 procedure TFormServer.SetServerInfo(AValue: TServerInfo); 58 begin 59 if FServerInfo = AValue then Exit; 60 FServerInfo := AValue; 61 if Assigned(FServerInfo) then Load(FServerInfo); 62 end; 63 49 64 procedure TFormServer.Load(Server: TServerInfo); 50 65 begin
Note:
See TracChangeset
for help on using the changeset viewer.