private void button1_Click(object sender, EventArgs e)
        {
            HistoryItemView historyItemView = new HistoryItemView();

            historyItemView.startDate = this.dateTimePicker1.Text;
            historyItemView.endDate   = this.dateTimePicker2.Text;
            this.Hide();
            historyItemView.ShowDialog();
            this.Close();
        }
        private void 未来安排ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HistoryItemView historyItemView = new HistoryItemView();
            DateTime        dt = DateTime.Now;

            historyItemView.startDate = dt.AddDays(1).ToLongDateString();
            historyItemView.endDate   = "3000年12月12日";
            historyItemView.Text      = "未来事项概览";
            historyItemView.userName  = this.userName;
            historyItemView.ShowDialog();
        }
        private void DateMenuStrip(int timeDelta, string title)
        {
            // 传递时间,打开一个新窗口
            HistoryItemView historyItemView = new HistoryItemView();
            DateTime        dt = DateTime.Now;

            historyItemView.startDate = dt.AddDays(timeDelta).ToLongDateString();
            historyItemView.endDate   = dt.AddDays(-1).ToLongDateString();
            historyItemView.Text      = title + "事项概览";
            historyItemView.userName  = this.userName;
            historyItemView.ShowDialog();
        }