Changeset 288 for trunk/Forms/UFormNew.pas
- Timestamp:
- Mar 24, 2019, 10:52:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r287 r288 600 600 procedure TFormNew.AServerAddExecute(Sender: TObject); 601 601 var 602 NewServer : TServerInfo;602 NewServerInfo: TServerInfo; 603 603 begin 604 604 FormServer := TFormServer.Create(nil); 605 NewServer := TServerInfo.Create;606 FormServer. Load(NewServer);605 NewServerInfo := TServerInfo.Create; 606 FormServer.ServerInfo := NewServerInfo; 607 607 if FormServer.ShowModal = mrOK then begin 608 FormServer.Save(NewServer); 609 ServerList.Items.Add(NewServer); 608 ServerList.Items.Add(NewServerInfo); 610 609 ReloadView; 611 end else NewServer .Free;610 end else NewServerInfo.Free; 612 611 FormServer.Free; 613 612 end; … … 615 614 procedure TFormNew.AServerModifyExecute(Sender: TObject); 616 615 var 617 Server : TServerInfo;616 ServerInfo: TServerInfo; 618 617 begin 619 618 FormServer := TFormServer.Create(nil); 620 Server := TServerInfo(ListViewServers.Selected.Data);621 FormServer. Load(Server);619 ServerInfo := TServerInfo(ListViewServers.Selected.Data); 620 FormServer.ServerInfo := ServerInfo; 622 621 if FormServer.ShowModal = mrOK then begin 623 FormServer.Save(Server);624 622 ReloadView; 625 623 end;
Note:
See TracChangeset
for help on using the changeset viewer.