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());
            }
        }
 private void GridAction(StatsController sc, Statistics form)
 {
     form.statsController = sc;
     form.AsyncRun();
 }