コード例 #1
0
        private void PrintSelectedBtn_Click(object sender, EventArgs e)
        {
            TemplateHandler CertificateTemplate = new TemplateHandler();
            string          CertificatesTable   = CertificateTemplate.FillTemplate(this.SelectedCertificatesList);

            RegistryPrintForm PrintRegistry = new RegistryPrintForm(CertificatesTable);

            PrintRegistry.ShowDialog();

            this.ClearHideSelectedList();
        }
コード例 #2
0
        private void PrintAllBtn_Click(object sender, EventArgs e)
        {
            Certificate GetCertificates = new Certificate();
            IList <CertificatesListItem> Certificates = GetCertificates.GetCertificatesRegistry();

            TemplateHandler CertificateTemplate = new TemplateHandler();
            string          CertificatesTable   = CertificateTemplate.FillTemplate(Certificates);

            RegistryPrintForm PrintRegistry = new RegistryPrintForm(CertificatesTable);

            PrintRegistry.ShowDialog();
        }