fix connect

This commit is contained in:
2026-05-11 18:57:26 +03:00
parent 604fd836ba
commit ec596bb0c8
2 changed files with 40 additions and 17 deletions
+9 -1
View File
@@ -105,7 +105,8 @@ type
function GetAutoStartBoardType: Integer;
function GetSavedBoardType(Idx: Integer): Integer;
// Получить результат
// Получить/сбросить результат
procedure ClearResult;
property DialogResult: TDeviceDialogResult read FResult;
property OnDiscover: TNotifyEvent read FOnDiscover write FOnDiscover;
property SavedCount: Integer read FSavedCount;
@@ -596,6 +597,13 @@ begin
ModalResult := mrCancel;
end;
procedure TDeviceDialog.ClearResult;
begin
FResult.Accepted := False;
FResult.IPAddress := '';
FResult.SavedIdx := -1;
end;
function TDeviceDialog.GetAutoStartIP: string;
var
I: Integer;