public void BindToContent(ISignContent content) { Target = (ContentSimpleText)content; // throw on error textBox1.Text = Target.Text; SuppressChange = false; }
public void SetContent(ISignContent[] sources) { SignElement[] newElements = sources.SelectMany((s) => s.GetElements()).ToArray(); lock(this) { ContentSources = sources; ContentElements = newElements; } }
void ContentControl_ContentChange(ISignContent content) { // Figure out which element this was and update the listbox text. for (int i = 0; i < Elements.Count; i++) { if (Elements[i].Content == content) { SuppressListboxChange = true; listBox1.Items[i + 1] = content.Summary; SuppressListboxChange = false; break; } } }
public static List <SignContentReport> GetSignContentReports(this ISignContent signContent) { var heading = ConfigurationHelper.GetValueOrDefault("Reporting.SignContentReport.Heading", "LA PRESENTE COPIA E' CONFORME ALL'ORIGINALE DEPOSITATO.\r\nElenco firme associate al file con impronta SHA1 (hex):"); heading = Regex.Unescape(heading); var sha1 = BitConverter.ToString(signContent.Content.ComputeSHA1()); int i = 1; var results = GetReportRecursive(signContent.Signatures); var rowCount = results.Count(); foreach (var item in results) { item.Id = i++; item.RowCount = rowCount; item.Heading = heading; item.SHA1 = sha1; } return(results); }
public static PdfContentInfo PrintSignContentReport(this ISignContent source, bool enableErrorSection) { if (!source.HasSignatures) { return(null); } logger.Debug(string.Format("enableErrorSection: {0}", enableErrorSection)); ReportParameter reportParameter = null; if (enableErrorSection) { reportParameter = ReportParameterEx.Add("ErrorText", "Contenuto da controllare rispetto all’originale: Errori rilevati nella conversione nel formato PDF/A"); } return(BiblosDSReportFactory.GetReport <SignContentReport>() .RenderToPdf(source.GetSignContentReports(), reportParameter )); }
void ContentControl_ContentChange(ISignContent content) { // Figure out which element this was and update the listbox text. for(int i=0;i<Elements.Count;i++) { if(Elements[i].Content == content) { SuppressListboxChange = true; listBox1.Items[i + 1] = content.Summary; SuppressListboxChange = false; break; } } }