コード例 #1
0
 public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.White), e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height);
     if ((string)e.Value == "Sport")
     {
         e.Graphics.DrawImage(sport, 0, 0);
     }
     else if ((string)e.Value == "Truck")
     {
         e.Graphics.DrawImage(truck, 0, 0);
     }
     else if ((string)e.Value == "Family")
     {
         e.Graphics.DrawImage(family, 0, 0);
     }
 }
コード例 #2
0
ファイル: CarTypeEditor.cs プロジェクト: poskart/wf_exercise
 public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.White), e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height);
     if ((string)e.Value == "Car")
     {
         e.Graphics.DrawImage(carImage, 0, 0);
     }
     else if ((string)e.Value == "Truck")
     {
         e.Graphics.DrawImage(truckImage, 0, 0);
     }
     else if ((string)e.Value == "Two-wheel vehicle")
     {
         e.Graphics.DrawImage(twoWheelImage, 0, 0);
     }
 }
コード例 #3
0
 public virtual void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
 }
コード例 #4
0
 public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
 }
コード例 #5
0
ファイル: TypeConverters.cs プロジェクト: nirinium/MouseMacro
 public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
     ControlPaint.DrawCheckBox(e.Graphics, e.Bounds, ButtonState.Inactive);
 }