示例#1
0
        public void InitData(object o)
        {
            TeeChartConfigClass tccc = (TeeChartConfigClass)o;

            textBoxTitle.Text   = tccc.teeChartTitle;
            labelFontTitle.Text = tccc.teeChartTitleFont.Name + "," + tccc.teeChartTitleFont.Size;

            textBoxAxesLeft.Text           = tccc.axesNameLeft;
            labelFontAxesLeft.Text         = tccc.axesFontLeft.Name + "," + tccc.axesFontLeft.Size;
            numericUpDownAxesLeftMax.Value = (decimal)(tccc.axesMaxLeft);
            numericUpDownAxesLeftMin.Value = (decimal)(tccc.axesMinLeft);


            textBoxAxesBottom.Text           = tccc.axesNameBottom;
            labelFontAxesBottom.Text         = tccc.axesFontBottom.Name + "," + tccc.axesFontBottom.Size;
            numericUpDownAxesBottomMax.Value = (decimal)(tccc.axesMaxBottom);
            numericUpDownAxesBottomMin.Value = (decimal)(tccc.axesMinBottom);
        }
示例#2
0
        private void buttonClose_Click(object sender, EventArgs e)
        {
            TeeChartConfigClass tc = new TeeChartConfigClass();

            tc.teeChartTitle     = textBoxTitle.Text;
            tc.teeChartTitleFont = GetFont(labelFontTitle.Text);

            tc.axesNameLeft = textBoxAxesLeft.Text;
            tc.axesFontLeft = GetFont(labelFontAxesLeft.Text);
            tc.axesMaxLeft  = (int)(numericUpDownAxesLeftMax.Value);
            tc.axesMinLeft  = (int)(numericUpDownAxesLeftMin.Value);

            tc.axesNameBottom = textBoxAxesBottom.Text;
            tc.axesFontBottom = GetFont(labelFontAxesBottom.Text);
            tc.axesMaxBottom  = (int)(numericUpDownAxesBottomMax.Value);
            tc.axesMinBottom  = (int)(numericUpDownAxesBottomMin.Value);

            this.Tag = tc;

            this.Close();
        }