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 + @"TimeServerAccountId", Data.EscapeString(TimeServerAccountId)); }
public override bool Equals(object o) { if (!(o is Signature)) { return(false); } Signature v = o as Signature; if (!AllowMultiSigning.Equals(v.AllowMultiSigning)) { return(false); } if (!CertificateFile.Equals(v.CertificateFile)) { return(false); } if (!DisplaySignatureInDocument.Equals(v.DisplaySignatureInDocument)) { return(false); } if (!Enabled.Equals(v.Enabled)) { return(false); } if (!LeftX.Equals(v.LeftX)) { return(false); } if (!LeftY.Equals(v.LeftY)) { return(false); } if (!RightX.Equals(v.RightX)) { return(false); } if (!RightY.Equals(v.RightY)) { return(false); } if (!SignContact.Equals(v.SignContact)) { return(false); } if (!SignLocation.Equals(v.SignLocation)) { return(false); } if (!SignReason.Equals(v.SignReason)) { return(false); } if (!SignatureCustomPage.Equals(v.SignatureCustomPage)) { return(false); } if (!SignaturePage.Equals(v.SignaturePage)) { return(false); } if (!SignaturePassword.Equals(v.SignaturePassword)) { return(false); } if (!TimeServerAccountId.Equals(v.TimeServerAccountId)) { return(false); } return(true); }