Opc.Ua.Configuration.CreateAuthorityDlg.ApplicationNameTB_TextChanged C# (CSharp) Method

ApplicationNameTB_TextChanged() private method

private ApplicationNameTB_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void ApplicationNameTB_TextChanged(object sender, EventArgs e)
        {
            try
            {
                // update subject name.
                if (!SubjectNameCK.Checked)
                {
                    StringBuilder buffer = new StringBuilder();
                    buffer.Append("CN=");
                    buffer.Append(ApplicationNameTB.Text);

                    if (!String.IsNullOrEmpty(OrganizationTB.Text))
                    {
                        buffer.Append("/O=");
                        buffer.Append(OrganizationTB.Text);
                    }

                    SubjectNameTB.Text = buffer.ToString();
                }
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, System.Reflection.MethodBase.GetCurrentMethod(), exception);
            }
        }