Opc.Ua.Client.Controls.DiscoveredServerListDlg.ShowDialog C# (CSharp) Method

ShowDialog() public method

Displays the dialog.
public ShowDialog ( string hostname, ApplicationConfiguration configuration ) : ApplicationDescription
hostname string
configuration ApplicationConfiguration
return ApplicationDescription
        public ApplicationDescription ShowDialog(string hostname, ApplicationConfiguration configuration)
        {
            m_configuration = configuration;

            if (String.IsNullOrEmpty(hostname))
            {
                hostname = System.Net.Dns.GetHostName();
            }

            m_hostname = hostname;
            List<string> hostnames = new List<string>();

            HostNameCTRL.Initialize(hostname, hostnames);
            ServersCTRL.Initialize(hostname, configuration);

            OkBTN.Enabled = false;

            if (ShowDialog() != DialogResult.OK)
            {
                return null;
            }
  
            return m_server;
        }
        #endregion