Пример #1
0
        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());
        }
Пример #2
0
 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));
 }