public Account_Chart()
        {
            InitializeComponent();
            dateStart = MainForm.mainDateStart;
            dateEnd = MainForm.mainDateEnd;

            panel.Controls.Clear();
            Control_AccInOut accInOutChart = new Control_AccInOut();
            panel.Controls.Add(accInOutChart);
            dateTimePicker_start.Text = dateStart;
            dateTimePicker_end.Text = dateEnd;
        }
        //收支折线图
        private void btn_accInOut_Click(object sender, EventArgs e)
        {
            dateStart = dateTimePicker_start.Value.ToString("yyyy-MM-dd");
            dateEnd = dateTimePicker_end.Value.ToString("yyyy-MM-dd");

            if (string.Compare(dateStart,dateEnd) > 0)
            {
                MessageBox.Show("查询的开始日期应在终止日期之前", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            this.panel.Controls.Clear();
            Control_AccInOut accInOutChart = new Control_AccInOut();
            this.panel.Controls.Add(accInOutChart);
        }