Esempio n. 1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     base.OnPaint(e);
     if (TargetedErrorNotOk.HasValue)
     {
         e.FillTranslucent(TargetedErrorNotOk.Value ? Color.Red : Color.Green);
     }
     else if (moving)
     {
         e.FillTranslucent(SystemColors.Highlight);
     }
 }
Esempio n. 2
0
 protected override void OnPaint(PaintEventArgs e)
 {
     base.OnPaint(e);
     if (TargetedErrorNotOk.HasValue)
     {
         e.FillTranslucent(TargetedErrorNotOk.Value ? Color.Red : Color.Green);
     }
     else if (moving)
     {
         e.FillTranslucent(SystemColors.Highlight);
     }
 }