public StyleListBox(IWindowsFormsEditorService editorService, IStyleSetProvider styleSetProvider, IStyleSet styleSet, Type selectedStyleType, bool showDefaultStyleItem, bool showOpenDesignerItem) : this(editorService) { if (styleSetProvider == null) throw new ArgumentNullException("styleSetProvider"); if (styleSet == null) throw new ArgumentNullException("styleSet"); if (selectedStyleType == null) throw new ArgumentNullException("selectedStyleType"); this.styleSetProvider = styleSetProvider; Initialize(styleSet, showDefaultStyleItem, showOpenDesignerItem, selectedStyleType, null); }
public StyleListBox(IWindowsFormsEditorService editorService, IStyleSetProvider styleSetProvider, IStyleSet styleSet, Style style, bool showDefaultStyleItem, bool showOpenDesignerItem) : this(editorService) { if (styleSetProvider == null) { throw new ArgumentNullException("styleSetProvider"); } if (styleSet == null) { throw new ArgumentNullException("styleSet"); } if (style == null) { throw new ArgumentNullException("style"); } this._styleSetProvider = styleSetProvider; Initialize(styleSet, showDefaultStyleItem, showOpenDesignerItem, style.GetType(), style); }