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(); }
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(); }