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

EditTrustListBTN_Click() private method

Edits the trust list for the application.
private EditTrustListBTN_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void EditTrustListBTN_Click(object sender, EventArgs e)
        {
            try
            {
                // get application.
                ManagedApplication application = ApplicationToManageCTRL.GetSelectedApplication();;

                if (application == null)
                {
                    return;
                }

                // load the configuration.
                application.Reload();

                // show the trust list.
                new CertificateListDlg().ShowDialog(application.TrustList, false);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }