示例#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
 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);
     }
 }
 public virtual void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
 }
 public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
 }
示例#5
0
 public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
 {
     ControlPaint.DrawCheckBox(e.Graphics, e.Bounds, ButtonState.Inactive);
 }