public FormAddRequest(SubjectType subjectType) { InitializeComponent(); //---- this.subjectType = subjectType; FormHelper.InitModalDialog(this);//初始化为模态对话框 //---- this.caDataHelper = new CADataHelper(Config.OPENSSL_FILE, Config.CADATA_DIR); }
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(); }
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(); }