Opc.Ua.ServerTest.MainForm.EndpointsCTRL_ConnectEndpoint C# (CSharp) Method

EndpointsCTRL_ConnectEndpoint() public method

public EndpointsCTRL_ConnectEndpoint ( object sender, ConnectEndpointEventArgs e ) : void
sender object
e Opc.Ua.Client.Controls.ConnectEndpointEventArgs
return void
        void EndpointsCTRL_ConnectEndpoint(object sender, ConnectEndpointEventArgs e)
        {
            try
            {
                if (m_running)
                {
                    throw new InvalidOperationException("Test is already running.");
                }

                if (m_testConfiguration.Coverage == 0)
                {
                    m_testConfiguration.Coverage = 100;
                }

                SetRunning(true);
                                
                EndpointTB.Text = e.Endpoint.EndpointUrl.ToString();
                TestsCompletedTB.Text = "---";
                IterationTB.Text = "---";
                TestCaseTB.Text = "---";
                TestCaseProgressCTRL.Value = 0;
                ResultsTB.Clear();

                ThreadPool.QueueUserWorkItem(Run, e.Endpoint);
            }
            catch (Exception exception)
            {
				GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
                e.UpdateControl = false;
            }
        }