示例#1
0
 /*
 static internal void SetPenColor(DigitalColor dclr)
 {
     digitalcolor = dclr;
     pen.Color = System.Drawing.Color.FromArgb(
         (digitalcolor == DigitalColor.RedColor) ? 255:0 ,
         (digitalcolor == DigitalColor.GreenColor) ? 255:0,
         (digitalcolor == DigitalColor.BlueColor) ? 255:0);
     setDimPen();
 }
 */
 internal static void SetPenColor(DigitalColor color)
 {
     SriClocks.ColorHolder c = SriClocks.DigitalClockCtrl.ColorList[(int)color];
     digitalcolor = c.DigitalColor;
     pen.Color = System.Drawing.Color.FromArgb(c.Red,c.Green,c.Blue);
     setDimPen();
 }
示例#2
0
 static internal void SetPenColor(DigitalColor dclr)
 {
     if (dclr == DigitalColor.Black)
     {
         pen.Color = Color.Black;
     }
     else if (dclr == DigitalColor.White)
     {
         pen.Color = Color.White;
     }
     else
     {
         pen.Color = Color.FromArgb(
             (dclr == DigitalColor.RedColor) ? 255 : 0,
             (dclr == DigitalColor.GreenColor) ? 255 : 0,
             (dclr == DigitalColor.BlueColor) ? 255 : 0);
     }
     setDimPen();
 }
示例#3
0
 static internal void SetPenColor(DigitalColor dclr)
 {
     pen.Color = Color.White;
     setDimPen();
 }