예제 #1
0
        private void UpdateGraphics(
            Color cellBackColor,
            Color cellCaptionColor)
        {
            PaintUtils.Update(ref backBrush, cellBackColor);
            PaintUtils.Update(ref captionBrush, cellCaptionColor);

            PaintUtils.Update(
                ref gridPenLight,
                Color.FromArgb(
                    128,
                    Color.White));
            PaintUtils.Update(
                ref gridPenLight2,
                Color.FromArgb(
                    64,
                    Color.White));
            PaintUtils.Update(
                ref gridPenDark,
                Color.FromArgb(
                    128,
                    ControlPaint.Dark(cellBackColor)));
            PaintUtils.Update(
                ref gridPenDark2,
                Color.FromArgb(
                    64,
                    ControlPaint.Dark(cellBackColor)));
        }
 private void UpdateGraphics()
 {
     PaintUtils.Update(ref backBrush, BackColor);
 }