mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-22 09:37:12 +08:00
32 lines
819 B
C#
32 lines
819 B
C#
using System.Windows.Forms;
|
|
using Opc.Ua.Client.Controls;
|
|
|
|
namespace Opc.Ua.Gds
|
|
{
|
|
public partial class SelectServerDialog : Form
|
|
{
|
|
public SelectServerDialog()
|
|
{
|
|
InitializeComponent();
|
|
Icon = ClientUtils.GetAppIcon();
|
|
}
|
|
|
|
public EndpointDescription ShowDialog(
|
|
IWin32Window owner,
|
|
ConfiguredEndpointCollection endpoints,
|
|
LocalDiscoveryServer lds,
|
|
GlobalDiscoveryServer gds,
|
|
QueryServersFilter filters)
|
|
{
|
|
DiscoveryControl.Initialize(endpoints, lds, gds, filters);
|
|
|
|
if (base.ShowDialog(owner) != System.Windows.Forms.DialogResult.OK)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
return DiscoveryControl.SelectedEndpoint;
|
|
}
|
|
}
|
|
}
|