Beispiel #1
0
 public BrushStyleComboBox(EnumSetting <PaintDotNet.BrushType> brushTypeSetting, EnumSetting <System.Drawing.Drawing2D.HatchStyle> hatchStyleSetting) : base(false)
 {
     this.penBrushCache   = PenBrushCache.ThreadInstance;
     this.hatchStyleNames = EnumLocalizer.Create(typeof(System.Drawing.Drawing2D.HatchStyle));
     Validate.Begin().IsNotNull <EnumSetting <PaintDotNet.BrushType> >(brushTypeSetting, "brushTypeSetting").IsNotNull <EnumSetting <System.Drawing.Drawing2D.HatchStyle> >(hatchStyleSetting, "hatchStyleSetting").Check();
     this.brushTypeSetting  = brushTypeSetting;
     this.hatchStyleSetting = hatchStyleSetting;
     base.Name            = "brushStyleComboBox";
     base.DropDownStyle   = ComboBoxStyle.DropDownList;
     base.DropDownWidth   = 0xea;
     base.DropDownHeight *= 2;
     base.AutoSize        = true;
     base.AutoToolTip     = true;
     this.Size            = new Size(UIUtil.ScaleWidth(base.Width), base.Height);
     base.DropDownWidth   = UIUtil.ScaleWidth(base.DropDownWidth);
     base.DropDownHeight  = UIUtil.ScaleHeight(base.DropDownHeight);
     base.ComboBox.SelectedValueChanged   += new EventHandler(this.OnComboBoxSelectedValueChanged);
     this.brushTypeSetting.ValueChangedT  += new ValueChangedEventHandler <PaintDotNet.BrushType>(this.OnBrushTypeSettingValueChanged);
     this.hatchStyleSetting.ValueChangedT += new ValueChangedEventHandler <System.Drawing.Drawing2D.HatchStyle>(this.OnHatchStyleSettingValueChanged);
 }
Beispiel #2
0
 public PdnToolStripRenderer()
 {
     base.RoundedEdges  = false;
     this.penBrushCache = PenBrushCache.ThreadInstance;
 }
Beispiel #3
0
 public ArrowButton()
 {
     this.BackColor     = Color.Transparent;
     this.penBrushCache = PenBrushCache.ThreadInstance;
 }