private void SelectServerButton_Click(object sender, EventArgs e) { try { var endpoint = new SelectServerDialog().ShowDialog(this, m_endpoints, m_lds, m_gds, m_filters); if (endpoint != null) { SetServer(endpoint); RegistrationPanel.Initialize(m_gds, endpoint, m_configuration); return; } } catch (Exception exception) { MessageBox.Show(Text + ": " + exception.Message); } }
private void SelectServerButton_Click(object sender, EventArgs e) { try { var endpoint = new SelectServerDialog().ShowDialog(this, m_endpoints, m_lds, m_gds, m_filters); if (endpoint != null) { SetServer(endpoint); RegistrationPanel.Initialize(m_gds, m_server, endpoint, m_configuration); SelectGdsButton.Visible = true; return; } } catch (Exception ex) { Opc.Ua.Client.Controls.ExceptionDlg.Show(Text, ex); } }