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

RunCompleted() private method

Called when the test run completes.
private RunCompleted ( object exception ) : void
exception object
return void
        private void RunCompleted(object exception)
        {
            if (InvokeRequired)
            {
                this.BeginInvoke(new WaitCallback(RunCompleted), exception);
                return;
            }

            if (IsDisposed)
            {
                return;
            }

            SetRunning(false);

            EndpointTB.Text = "---";
            IterationTB.Text = "---";
            TestCaseTB.Text = "---";
            TestCaseProgressCTRL.Value = TestCaseProgressCTRL.Maximum;

            if (exception != null)
            {
			    GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), (Exception)exception);
            }           
        }
        #endregion