Пример #1
0
        public PaintContextTestControl()
        {
            this.Stopwatch = new Stopwatch();
            System.Windows.Forms.ControlStyles controlStyle =
                System.Windows.Forms.ControlStyles.UserPaint
                | System.Windows.Forms.ControlStyles.AllPaintingInWmPaint
                | System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer;

            //if (Opaque) {
            //    controlStyle = controlStyle | ControlStyles.Opaque;
            //}

            this.SetStyle(controlStyle, true);
            this.TestCase = PaintContextTestCase.AwesomeIcons;
        }
Пример #2
0
 protected bool GetStyle(System.Windows.Forms.ControlStyles flag);
Пример #3
0
 protected void SetStyle(System.Windows.Forms.ControlStyles flag, bool value);