Exemplo n.º 1
0
 /// <summary>
 /// 数据库显示界面
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StatisticsWindowShow_Click(object sender, EventArgs e)
 {
     if (_StatisticsWindow == null || _StatisticsWindow.IsDisposed)
     {
         _StatisticsWindow = new IEDataBase.StatisticsWindow();
     }
     SetTabPate("StatisticsTable", StatisticsTable, form: _StatisticsWindow);
 }
        public StatisticsWindow()
        {
            InitializeComponent();

            _Statistics = this;

            DateTime Sd = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            DateTime Ed = Sd.AddMonths(1).AddDays(-1);

            dateTimePicker1.Value = Sd;
            dateTimePicker2.Value = Ed;

            TimeradioButton.Checked = true;
        }