private void buttonLoadCertificate_Click(object sender, EventArgs e)
        {
            FormChooseAuthCertificate formChooseCert = new FormChooseAuthCertificate();

            formChooseCert.ShowDialog(this);
            if (formChooseCert.Certificate != null)
            {
                textBoxAuthCertificate.Tag  = formChooseCert.Certificate;
                textBoxAuthCertificate.Text = formChooseCert.Certificate.FriendlyName;
            }
            formChooseCert.Dispose();
        }
예제 #2
0
        private void buttonChooseCertificate_Click(object sender, EventArgs e)
        {
            Auth.FormChooseAuthCertificate oForm = new Auth.FormChooseAuthCertificate();
            DialogResult result = oForm.ShowDialog(this);

            if (result == DialogResult.Cancel)
            {
                return;
            }

            _authCertificate            = oForm.Certificate;
            textBoxAuthCertificate.Text = _authCertificate.Subject;
        }