Opc.Ua.Configuration.MainForm.TrustAnotherApplicationBTN_Click C# (CSharp) Method

TrustAnotherApplicationBTN_Click() private method

private TrustAnotherApplicationBTN_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void TrustAnotherApplicationBTN_Click(object sender, EventArgs e)
        {
            try
            {
                ManagedApplication application1 = ApplicationToManageCTRL.GetSelectedApplication(); ;

                if (application1 == null)
                {
                    return;
                }

                application1.Reload();

                ManagedApplication application2 = new SelectApplicationDlg().ShowDialog();

                if (application2 == null)
                {
                    return;
                }

                SetupTrustRelationship(application1, application2);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }