Opc.Ua.Sample.Controls.ClientForm.DiscoverServersMI_Click C# (CSharp) Method

DiscoverServersMI_Click() private method

private DiscoverServersMI_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void DiscoverServersMI_Click(object sender, EventArgs e)
        {
            try
            {
                ConfiguredEndpoint endpoint = new ConfiguredServerListDlg().ShowDialog(m_configuration, true);
                
                if (endpoint != null)
                {
                    this.EndpointSelectorCTRL.SelectedEndpoint = endpoint;
                    return;
                }
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }