Пример #1
0
 protected override void CreatePensBrushes()
 {
     DisposePensBrushes();
     if (base.Region != null)
     {
         int width  = base.Width;
         int height = base.Height;
         brush00           = ColorManager.Brush00(new Rectangle(0, 0, width, height));
         bluesilverBrush02 = ColorManager.Brush02(Schemes.Blue, new Rectangle(2, 3, width - 4, height - 7));
         oliveBrush02      = ColorManager.Brush02(Schemes.OliveGreen, new Rectangle(2, 3, width - 4, height - 7));
         bluesilverBrush03 = ColorManager.Brush03(Schemes.Blue, new Rectangle(2, 3, width - 4, height - 7));
         oliveBrush03      = ColorManager.Brush03(Schemes.OliveGreen, new Rectangle(2, 3, width - 4, height - 7));
         blueBrush04       = ColorManager.Brush04(Schemes.Blue);
         oliveBrush04      = ColorManager.Brush04(Schemes.OliveGreen);
         silverBrush04     = ColorManager.Brush04(Schemes.Silver);
         bluesilverPen06   = ColorManager.Pen06(Schemes.Blue);
         olivePen06        = ColorManager.Pen06(Schemes.OliveGreen);
         bluesilverPen07   = ColorManager.Pen07(Schemes.Blue);
         olivePen07        = ColorManager.Pen07(Schemes.OliveGreen);
         bluesilverPen08   = ColorManager.Pen08(Schemes.Blue);
         olivePen08        = ColorManager.Pen08(Schemes.OliveGreen);
         bluesilverPen09   = ColorManager.Pen09(Schemes.Blue);
         olivePen09        = ColorManager.Pen09(Schemes.OliveGreen);
         bluesilverPen10   = ColorManager.Pen10(Schemes.Blue);
         olivePen10        = ColorManager.Pen10(Schemes.OliveGreen);
         bluesilverPen11   = ColorManager.Pen11(Schemes.Blue);
         olivePen11        = ColorManager.Pen11(Schemes.OliveGreen);
         bluesilverPen12   = ColorManager.Pen12(Schemes.Blue);
         olivePen12        = ColorManager.Pen12(Schemes.OliveGreen);
         bluesilverPen13   = ColorManager.Pen13(Schemes.Blue);
         olivePen13        = ColorManager.Pen13(Schemes.OliveGreen);
         bluesilverPen14   = ColorManager.Pen14(Schemes.Blue);
         olivePen14        = ColorManager.Pen14(Schemes.OliveGreen);
         bluesilverPen15   = ColorManager.Pen15(Schemes.Blue);
         olivePen15        = ColorManager.Pen15(Schemes.OliveGreen);
         bluesilverPen16   = ColorManager.Pen16(Schemes.Blue);
         olivePen16        = ColorManager.Pen16(Schemes.OliveGreen);
         _brush01          = ColorManager._Brush01(scheme);
         _brush02          = ColorManager._Brush02(scheme);
         _pen01            = ColorManager._Pen01(scheme);
         _pen02            = ColorManager._Pen02(scheme);
         silverBrush06     = ColorManager.Brush06();
         silverBrush07     = ColorManager.Brush07(new Rectangle(3, 3, width - 6, height - 7));
         silverBrush08     = ColorManager.Brush08();
         brush09           = ColorManager.Brush09(new Rectangle(3, 3, width - 5, height - 8));
         pen23             = ColorManager.Pen23();
         pen24             = ColorManager.Pen24();
         brush01           = ColorManager.Brush01(scheme, new Rectangle(2, 2, width - 5, height - 7));
         brush05           = ColorManager.Brush05(scheme, new Rectangle(2, 2, width - 5, height - 7));
         bluesilverPen01   = ColorManager.Pen01(Schemes.Blue);
         bluesilverPen02   = ColorManager.Pen02(Schemes.Blue);
         bluesilverPen03   = ColorManager.Pen03(Schemes.Blue);
         bluesilverPen04   = ColorManager.Pen04(Schemes.Blue, new Rectangle(width - 3, 4, 1, height - 5));
         bluesilverPen05   = ColorManager.Pen05(Schemes.Blue, new Rectangle(width - 2, 4, 1, height - 5));
         olivePen01        = ColorManager.Pen01(Schemes.OliveGreen);
         olivePen02        = ColorManager.Pen02(Schemes.OliveGreen);
         olivePen03        = ColorManager.Pen03(Schemes.OliveGreen);
         olivePen04        = ColorManager.Pen04(Schemes.OliveGreen, new Rectangle(width - 3, 4, 1, height - 5));
         olivePen05        = ColorManager.Pen05(Schemes.OliveGreen, new Rectangle(width - 2, 4, 1, height - 5));
         pen17             = ColorManager.Pen17(scheme, new Rectangle(2, 3, width - 4, height - 7));
         pen18             = ColorManager.Pen18(scheme, new Rectangle(3, 3, width - 4, height - 7));
         pen19             = ColorManager.Pen19(scheme);
         pen20             = ColorManager.Pen20(scheme);
         pen21             = ColorManager.Pen21(scheme);
         pen22             = ColorManager.Pen22(scheme);
         base.CreatePensBrushes();
     }
 }