Exemplo n.º 1
0
        public override bool Equals(object o)
        {
            if (!(o is PdfCreatorSettings))
            {
                return(false);
            }
            PdfCreatorSettings v = o as PdfCreatorSettings;

            if (!ApplicationProperties.Equals(v.ApplicationProperties))
            {
                return(false);
            }
            if (!ApplicationSettings.Equals(v.ApplicationSettings))
            {
                return(false);
            }

            if (ConversionProfiles.Count != v.ConversionProfiles.Count)
            {
                return(false);
            }
            for (int i = 0; i < ConversionProfiles.Count; i++)
            {
                if (!ConversionProfiles[i].Equals(v.ConversionProfiles[i]))
                {
                    return(false);
                }
            }


            return(true);
        }
Exemplo n.º 2
0
        public PdfCreatorSettings Copy()
        {
            PdfCreatorSettings copy = new PdfCreatorSettings(storage);

            copy.ApplicationProperties = ApplicationProperties.Copy();
            copy.ApplicationSettings   = ApplicationSettings.Copy();

            copy.ConversionProfiles = new List <ConversionProfile>();
            for (int i = 0; i < ConversionProfiles.Count; i++)
            {
                copy.ConversionProfiles.Add(ConversionProfiles[i].Copy());
            }


            return(copy);
        }