コード例 #1
0
ファイル: Chart.cs プロジェクト: fastquant/SQCharts
        public Chart()
        {
            this.components = new System.ComponentModel.Container();
            InitializeComponent();
            #if XWT || GTK
            #else
            this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true);
            this.UpdateStyles();
            #endif
            this.pads            = new PadList();
            this.canvasColor     = Color.MidnightBlue;
            this.padsHeightArray = new ArrayList();

            this.canvasLeftOffset   = 40; // 10
            this.canvasTopOffset    = 40; // 10
            this.canvasRightOffset  = 40;
            this.canvasBottomOffset = 40;

            this.chartBackColor = Color.MidnightBlue;
            bool contentUpdated = true;
            // Should have a default pad.
            AddPad();
            this.axisBottom = new AxisBottom(this, this.canvasLeftOffset, this.Width - this.canvasRightOffset, this.Height - this.canvasTopOffset);
            this.mouseX     = this.mouseY = -1;
        }
コード例 #2
0
ファイル: Chart.cs プロジェクト: 28427328/SQCharts
        public Chart()
        {
            this.components = new System.ComponentModel.Container();
            InitializeComponent();
            #if XWT || GTK
            #else
            this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true);
            this.UpdateStyles();
            #endif
            this.pads = new PadList();
            this.canvasColor = Color.MidnightBlue;
            this.padsHeightArray = new ArrayList();

            this.canvasLeftOffset = 40; // 10
            this.canvasTopOffset = 40; // 10
            this.canvasRightOffset = 40;
            this.canvasBottomOffset = 40;

            this.chartBackColor = Color.MidnightBlue;
            bool contentUpdated = true;
            // Should have a default pad.
            AddPad();
            this.axisBottom = new AxisBottom(this, this.canvasLeftOffset, this.Width - this.canvasRightOffset, this.Height - this.canvasTopOffset);
            this.mouseX = this.mouseY = -1;
        }