Prompts the user to specify a new access rule for a file.
Inheritance: System.Windows.Forms.Form
コード例 #1
0
ファイル: MainForm.cs プロジェクト: yuriik83/UA-.NET
        private void CreateCertificateAuthorityBTN_Click(object sender, EventArgs e)
        {
            try
            {
                CertificateStoreIdentifier store = new CertificateStoreIdentifier();
                store.StoreType = ManagedStoreCTRL.StoreType;
                store.StorePath = ManagedStoreCTRL.StorePath;
 
                CertificateIdentifier certificate = new CreateAuthorityDlg().ShowDialog(store);

                if (certificate != null)
                {
                    IssuerKeyFilePathTB.Text = certificate.GetPrivateKeyFilePath();
                    Utils.UpdateRecentFileList("CA Key File", IssuerKeyFilePathTB.Text, 1);
                }
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }