コード例 #1
0
		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);
		}
コード例 #2
0
ファイル: StyleListBox.cs プロジェクト: jestonitiro/nshape
		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);
		}
コード例 #3
0
 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);
 }