[exgui] Implement ServerProperties procedures

This commit is contained in:
RD42 2023-12-16 23:28:45 +08:00
parent b29fb68ec6
commit 42ea994e41
2 changed files with 19 additions and 6 deletions

Binary file not shown.

View File

@ -4,7 +4,7 @@ interface
uses uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls; Dialogs, StdCtrls, Menus;
type type
TfmServerProperties = class(TForm) TfmServerProperties = class(TForm)
@ -44,31 +44,44 @@ var
implementation implementation
uses Main;
{$R *.dfm} {$R *.dfm}
procedure TfmServerProperties.bnSaveClick(Sender: TObject); procedure TfmServerProperties.bnSaveClick(Sender: TObject);
var
Idx: Integer;
begin begin
// TODO: TfmServerProperties.bnSaveClick Idx:= StrToInt(fmMain.lbServers.Items.Strings[fmMain.lbServers.ItemIndex]);
Servers[Idx].ServerPassword:= edServerPassword.Text;
Servers[Idx].RconPassword:= edRconPassword.Text;
Close;
end; end;
procedure TfmServerProperties.bnCancelClick(Sender: TObject); procedure TfmServerProperties.bnCancelClick(Sender: TObject);
begin begin
// TODO: TfmServerProperties.bnCancelClick Close;
end; end;
procedure TfmServerProperties.bnConnectClick(Sender: TObject); procedure TfmServerProperties.bnConnectClick(Sender: TObject);
var
Idx: Integer;
begin begin
// TODO: TfmServerProperties.bnConnectClick Idx:= StrToInt(fmMain.lbServers.Items.Strings[fmMain.lbServers.ItemIndex]);
Servers[Idx].ServerPassword:= edServerPassword.Text;
Servers[Idx].RconPassword:= edRconPassword.Text;
fmMain.ConnectClick(fmMain);
Close;
end; end;
procedure TfmServerProperties.pmCopyPopup(Sender: TObject); procedure TfmServerProperties.pmCopyPopup(Sender: TObject);
begin begin
// TODO: TfmServerProperties.pmCopyPopup piCopy.Enabled:= edAddress.Text <> '- - -';
end; end;
procedure TfmServerProperties.piCopyClick(Sender: TObject); procedure TfmServerProperties.piCopyClick(Sender: TObject);
begin begin
// TODO: TfmServerProperties.piCopyClick fmMain.SetClipBoardStr(edAddress.Text);
end; end;
end. end.