Opc.Ua.Configuration.ManageAccessRulesDlg.ChangeTrustListPermissionBTN_Click C# (CSharp) Method

ChangeTrustListPermissionBTN_Click() private method

private ChangeTrustListPermissionBTN_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void ChangeTrustListPermissionBTN_Click(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(m_configurationFile))
                {
                    return;
                }

                List<SecuredObject> objectTypes = new List<SecuredObject>();
                List<string> objectPaths = new List<string>();

                if (!String.IsNullOrEmpty(m_trustListPath))
                {
                    objectTypes.Add(SecuredObject.PrivateKey);
                    objectPaths.Add(m_privateKeyFilePath);
                }

                new AccessRuleListDlg().ShowDialog(objectTypes, objectPaths);

                Update(m_application);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
    }