コード例 #1
0
        public void FilterHubDataGrid(bool date_changed, bool programs_changed, string where, DataGridView programGrid, StatsController statsController, Statistics form)
        {
            try
            {
                string whereController = string.Format("WHERE datetime  {0}", where);

                if (programs_changed && !date_changed)
                {
                    CheckBoxFilter(programGrid);
                }
                else if (date_changed && !programs_changed)
                {
                    statsController.where = whereController;
                }
                else if (date_changed && programs_changed)
                {
                    CheckBoxFilter(programGrid);

                    statsController.where = whereController;
                }
                GridAction(statsController, form);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #2
0
 private void GridAction(StatsController sc, Statistics form)
 {
     form.statsController = sc;
     form.AsyncRun();
 }