public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("AllowMultiSigning=" + AllowMultiSigning.ToString()); sb.AppendLine("CertificateFile=" + CertificateFile.ToString()); sb.AppendLine("DisplaySignatureInDocument=" + DisplaySignatureInDocument.ToString()); sb.AppendLine("Enabled=" + Enabled.ToString()); sb.AppendLine("LeftX=" + LeftX.ToString()); sb.AppendLine("LeftY=" + LeftY.ToString()); sb.AppendLine("RightX=" + RightX.ToString()); sb.AppendLine("RightY=" + RightY.ToString()); sb.AppendLine("SignContact=" + SignContact.ToString()); sb.AppendLine("SignLocation=" + SignLocation.ToString()); sb.AppendLine("SignReason=" + SignReason.ToString()); sb.AppendLine("SignatureCustomPage=" + SignatureCustomPage.ToString()); sb.AppendLine("SignaturePage=" + SignaturePage.ToString()); sb.AppendLine("SignaturePassword="******"TimeServerIsSecured=" + TimeServerIsSecured.ToString()); sb.AppendLine("TimeServerLoginName=" + TimeServerLoginName.ToString()); sb.AppendLine("TimeServerPassword="******"TimeServerUrl=" + TimeServerUrl.ToString()); return(sb.ToString()); }
public void StoreValues(Data data, string path) { data.SetValue(@"" + path + @"AllowMultiSigning", AllowMultiSigning.ToString()); data.SetValue(@"" + path + @"CertificateFile", Data.EscapeString(CertificateFile)); data.SetValue(@"" + path + @"DisplaySignatureInDocument", DisplaySignatureInDocument.ToString()); data.SetValue(@"" + path + @"Enabled", Enabled.ToString()); data.SetValue(@"" + path + @"LeftX", LeftX.ToString(System.Globalization.CultureInfo.InvariantCulture)); data.SetValue(@"" + path + @"LeftY", LeftY.ToString(System.Globalization.CultureInfo.InvariantCulture)); data.SetValue(@"" + path + @"RightX", RightX.ToString(System.Globalization.CultureInfo.InvariantCulture)); data.SetValue(@"" + path + @"RightY", RightY.ToString(System.Globalization.CultureInfo.InvariantCulture)); data.SetValue(@"" + path + @"SignContact", Data.EscapeString(SignContact)); data.SetValue(@"" + path + @"SignLocation", Data.EscapeString(SignLocation)); data.SetValue(@"" + path + @"SignReason", Data.EscapeString(SignReason)); data.SetValue(@"" + path + @"SignatureCustomPage", SignatureCustomPage.ToString(System.Globalization.CultureInfo.InvariantCulture)); data.SetValue(@"" + path + @"SignaturePage", SignaturePage.ToString()); data.SetValue(@"" + path + @"SignaturePassword", _signaturePassword); data.SetValue(@"" + path + @"TimeServerIsSecured", TimeServerIsSecured.ToString()); data.SetValue(@"" + path + @"TimeServerLoginName", Data.EscapeString(TimeServerLoginName)); data.SetValue(@"" + path + @"TimeServerPassword", _timeServerPassword); data.SetValue(@"" + path + @"TimeServerUrl", Data.EscapeString(TimeServerUrl)); }