示例#1
0
 public FormAddRequest(SubjectType subjectType)
 {
     InitializeComponent();
     //----
     this.subjectType = subjectType;
     FormHelper.InitModalDialog(this);//初始化为模态对话框
     //----
     this.caDataHelper = new CADataHelper(Config.OPENSSL_FILE, Config.CADATA_DIR);
 }
示例#2
0
        private void FormHelp_About_Load(object sender, EventArgs e)
        {
            var imageFile = AppDomain.CurrentDomain.BaseDirectory.Trim('\\') + @"\Images\about.jpg";

            picAbout.Image = new Bitmap(imageFile);
            //----
            var caDataHelper = new CADataHelper(Config.OPENSSL_FILE, Config.CADATA_DIR);

            labOpenSSLVersion.Text = caDataHelper.GetOpenSSLVersion();
        }
示例#3
0
        public FormMain()
        {
            InitializeComponent();
            //----
            FormHelper.InitGridView(this.gridCertOfValid);
            FormHelper.InitGridView(this.gridCertOfRevoke);
            FormHelper.InitGridView(this.gridRequestOfWait);
            FormHelper.InitGridView(this.gridRequestOfReject);
            FormHelper.InitGridView(this.gridCertOfExpire);
            //----

            //----
            this.caDataHelper = new CADataHelper(Config.OPENSSL_FILE, Config.CADATA_DIR);
            this.caPassword   = this.GetCAKeyPassword();
        }