public PerformanceChart()
        {
            InitializeComponent();
            this.MaxChartHeight = this.Height;
            perfChartStyle = new PerfChartStyle();

            // Set Optimized Double Buffer to reduce flickering
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            // Redraw when resized
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.Font = SystemInformation.MenuFont;
            this.ChartLines = new List<ChartLine>();
        }
示例#2
0
        public PerformanceChart()
        {
            InitializeComponent();
            this.MaxChartHeight = this.Height;
            perfChartStyle      = new PerfChartStyle();

            // Set Optimized Double Buffer to reduce flickering
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            // Redraw when resized
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.Font       = SystemInformation.MenuFont;
            this.ChartLines = new List <ChartLine>();
        }