示例#1
0
        private void buttonX1_Click(object sender, EventArgs e)
        {
            try
            {
                if (superValidator1.Validate())
                {
                    string tcps    = null;
                    string torg    = null;
                    string tnotice = null;
                    string toid    = textBoxX1.Text;

                    if (textBoxX2.Text.Length > 0)
                    {
                        tcps = textBoxX2.Text;
                    }

                    if (textBoxX3.Text.Length > 0)
                    {
                        torg = textBoxX3.Text;
                    }

                    if (textBoxX4.Text.Length > 0)
                    {
                        tnotice = textBoxX4.Text;
                    }

                    Policy = new PolicyInformationEntry(toid, tcps, torg, tnotice);
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                Log.LogEx(ex);
            }
        }
示例#2
0
 public CertificatePoliciesExt(PolicyInformationEntry ent)
 {
     NativeName = "certificatePolicies";
     Value      = "ia5org,@" + ent.Name;
 }