Пример #1
0
        internal void ApplyToConverter(IntPtr converter)
        {
            var config = PechkinStatic.CreateObjectSettings();

            SettingApplicator.ApplySettings(config, this);
            SettingApplicator.ApplySettings(config, this.HeaderSettings);
            SettingApplicator.ApplySettings(config, this.FooterSettings);
            SettingApplicator.ApplySettings(config, this.WebSettings);
            SettingApplicator.ApplySettings(config, this.LoadSettings);

            PechkinStatic.AddObject(converter, config, this.data);
        }
Пример #2
0
        internal void ApplyToConverter(out IntPtr converter)
        {
            converter = IntPtr.Zero;

            var config = PechkinStatic.CreateGlobalSetting();

            SettingApplicator.ApplySettings(config, this.global, true);

            converter = PechkinStatic.CreateConverter(config);

            //if (this.TableOfContents != null)
            //{
            //    this.TableOfContents.ApplyToConverter(converter);
            //}

            foreach (var setting in this.Objects)
            {
                if (setting != null)
                {
                    setting.ApplyToConverter(converter);
                }
            }
        }