Exemple #1
0
        protected override void PopulateOptionCollection(DesignerOptionCollection options)
        {
            if (options.Parent != null) return;

            var designerOptions = new DesignerOptions {UseSnapLines = true, UseSmartTags = true};
            var formsDesigner = CreateOptionCollection(options, "WindowsFormsDesigner", null);
            CreateOptionCollection(formsDesigner, "General", designerOptions);
        }
 protected override void PopulateOptionCollection(DesignerOptionService.DesignerOptionCollection options)
 {
     if (options.Parent == null)
     {
         DesignerOptions compatibilityOptions = this.CompatibilityOptions;
         if (compatibilityOptions != null)
         {
             base.CreateOptionCollection(options, "DesignerOptions", compatibilityOptions);
         }
     }
 }
 /// <summary>
 ///     This method is called on demand the first time a user asks for child
 ///     options or properties of an options collection.
 /// </summary>
 protected override void PopulateOptionCollection(DesignerOptionCollection options)
 {
     if (options.Parent == null)
     {
         DesignerOptions designerOptions = CompatibilityOptions;
         if (designerOptions != null)
         {
             CreateOptionCollection(options, "DesignerOptions", designerOptions);
         }
     }
 }