public void StoreValues(Data data, string path) { AttachmentPage.StoreValues(data, path + @"AttachmentPage\"); AutoSave.StoreValues(data, path + @"AutoSave\"); BackgroundPage.StoreValues(data, path + @"BackgroundPage\"); CoverPage.StoreValues(data, path + @"CoverPage\"); EmailClient.StoreValues(data, path + @"EmailClient\"); EmailSmtp.StoreValues(data, path + @"EmailSmtp\"); Ftp.StoreValues(data, path + @"Ftp\"); Ghostscript.StoreValues(data, path + @"Ghostscript\"); JpegSettings.StoreValues(data, path + @"JpegSettings\"); PdfSettings.StoreValues(data, path + @"PdfSettings\"); PngSettings.StoreValues(data, path + @"PngSettings\"); Printing.StoreValues(data, path + @"Printing\"); Properties.StoreValues(data, path + @"Properties\"); SaveDialog.StoreValues(data, path + @"SaveDialog\"); Scripting.StoreValues(data, path + @"Scripting\"); Stamping.StoreValues(data, path + @"Stamping\"); TiffSettings.StoreValues(data, path + @"TiffSettings\"); data.SetValue(@"" + path + @"AuthorTemplate", Data.EscapeString(AuthorTemplate)); data.SetValue(@"" + path + @"FileNameTemplate", Data.EscapeString(FileNameTemplate)); data.SetValue(@"" + path + @"Guid", Data.EscapeString(Guid)); data.SetValue(@"" + path + @"Name", Data.EscapeString(Name)); data.SetValue(@"" + path + @"OpenViewer", OpenViewer.ToString()); data.SetValue(@"" + path + @"OutputFormat", OutputFormat.ToString()); data.SetValue(@"" + path + @"ShowProgress", ShowProgress.ToString()); data.SetValue(@"" + path + @"SkipPrintDialog", SkipPrintDialog.ToString()); data.SetValue(@"" + path + @"TitleTemplate", Data.EscapeString(TitleTemplate)); }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("[AttachmentPage]"); sb.AppendLine(AttachmentPage.ToString()); sb.AppendLine("[AutoSave]"); sb.AppendLine(AutoSave.ToString()); sb.AppendLine("[BackgroundPage]"); sb.AppendLine(BackgroundPage.ToString()); sb.AppendLine("[CoverPage]"); sb.AppendLine(CoverPage.ToString()); sb.AppendLine("[EmailClient]"); sb.AppendLine(EmailClient.ToString()); sb.AppendLine("[EmailSmtp]"); sb.AppendLine(EmailSmtp.ToString()); sb.AppendLine("[Ftp]"); sb.AppendLine(Ftp.ToString()); sb.AppendLine("[Ghostscript]"); sb.AppendLine(Ghostscript.ToString()); sb.AppendLine("[JpegSettings]"); sb.AppendLine(JpegSettings.ToString()); sb.AppendLine("[PdfSettings]"); sb.AppendLine(PdfSettings.ToString()); sb.AppendLine("[PngSettings]"); sb.AppendLine(PngSettings.ToString()); sb.AppendLine("[Printing]"); sb.AppendLine(Printing.ToString()); sb.AppendLine("[Properties]"); sb.AppendLine(Properties.ToString()); sb.AppendLine("[SaveDialog]"); sb.AppendLine(SaveDialog.ToString()); sb.AppendLine("[Scripting]"); sb.AppendLine(Scripting.ToString()); sb.AppendLine("[Stamping]"); sb.AppendLine(Stamping.ToString()); sb.AppendLine("[TiffSettings]"); sb.AppendLine(TiffSettings.ToString()); sb.AppendLine("AuthorTemplate=" + AuthorTemplate.ToString()); sb.AppendLine("FileNameTemplate=" + FileNameTemplate.ToString()); sb.AppendLine("Guid=" + Guid.ToString()); sb.AppendLine("Name=" + Name.ToString()); sb.AppendLine("OpenViewer=" + OpenViewer.ToString()); sb.AppendLine("OpenWithPdfArchitect=" + OpenWithPdfArchitect.ToString()); sb.AppendLine("OutputFormat=" + OutputFormat.ToString()); sb.AppendLine("ShowProgress=" + ShowProgress.ToString()); sb.AppendLine("SkipPrintDialog=" + SkipPrintDialog.ToString()); sb.AppendLine("TitleTemplate=" + TitleTemplate.ToString()); return(sb.ToString()); }
public override bool Equals(object o) { if (!(o is ConversionProfile)) { return(false); } var v = o as ConversionProfile; if (!AttachmentPage.Equals(v.AttachmentPage)) { return(false); } if (!AutoSave.Equals(v.AutoSave)) { return(false); } if (!BackgroundPage.Equals(v.BackgroundPage)) { return(false); } if (!CoverPage.Equals(v.CoverPage)) { return(false); } if (!EmailClient.Equals(v.EmailClient)) { return(false); } if (!EmailSmtp.Equals(v.EmailSmtp)) { return(false); } if (!Ftp.Equals(v.Ftp)) { return(false); } if (!Ghostscript.Equals(v.Ghostscript)) { return(false); } if (!JpegSettings.Equals(v.JpegSettings)) { return(false); } if (!PdfSettings.Equals(v.PdfSettings)) { return(false); } if (!PngSettings.Equals(v.PngSettings)) { return(false); } if (!Printing.Equals(v.Printing)) { return(false); } if (!Properties.Equals(v.Properties)) { return(false); } if (!SaveDialog.Equals(v.SaveDialog)) { return(false); } if (!Scripting.Equals(v.Scripting)) { return(false); } if (!Stamping.Equals(v.Stamping)) { return(false); } if (!TiffSettings.Equals(v.TiffSettings)) { return(false); } if (!AuthorTemplate.Equals(v.AuthorTemplate)) { return(false); } if (!FileNameTemplate.Equals(v.FileNameTemplate)) { return(false); } if (!Guid.Equals(v.Guid)) { return(false); } if (!Name.Equals(v.Name)) { return(false); } if (!OpenViewer.Equals(v.OpenViewer)) { return(false); } if (!OutputFormat.Equals(v.OutputFormat)) { return(false); } if (!ShowProgress.Equals(v.ShowProgress)) { return(false); } if (!SkipPrintDialog.Equals(v.SkipPrintDialog)) { return(false); } if (!TitleTemplate.Equals(v.TitleTemplate)) { return(false); } return(true); }