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