Exemple #1
0
        public PerfChart()
        {
            InitializeComponent();

            // Initialize Variables
            perfChartStyle = new PerfChartStyle();

            perfChartPenStyles    = new PerfChartPenStyle[4];
            perfChartPenStyles[0] = new PerfChartPenStyle();
            perfChartPenStyles[1] = new PerfChartPenStyle();
            perfChartPenStyles[2] = new PerfChartPenStyle();
            perfChartPenStyles[3] = new PerfChartPenStyle();

            chartSize     = 500;
            drawValues    = new List <DataSample>(chartSize);
            waitingValues = new ConcurrentQueue <DataSample>();

            // 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;
        }
Exemple #2
0
        public PerfChart()
        {
            InitializeComponent();

            // Initialize Variables
            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;
        }
        public PerfChart() {
            InitializeComponent();

            // Initialize Variables
            perfChartStyle = new PerfChartStyle();

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

            // Redraw when resized
//HGO            this.SetStyle(ControlStyles.ResizeRedraw, true);

//HGO            this.Font = SystemInformation.MenuFont;
        }
Exemple #4
0
        public SpPerfChart()
        {
            InitializeComponent();
            // Initialize Variables
            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;

            // Adjust drawing surface for Border
            // Draw the background Gradient rectangle
            calculateSurfaceRectangle();
        }