Ejemplo n.º 1
0
 public FilterForm(Graphs form_, GraphsController gc)
 {
     InitializeComponent();
     graphForm       = form_;
     type            = "chart";
     graphController = gc;
 }
 public void ChartAction(Graphs form, GraphsController graphController)
 {
     form.graphicsController = graphController;
     form.AsyncRun();
 }
 public void FilterHubCharts(bool date_changed, bool programs_changed, string where, DataGridView programGrid, Graphs form, GraphsController graphController)
 {
     try
     {
         string whereAnd        = string.Format("AND (datetime  {0})", where);
         string whereController = string.Format("WHERE datetime  {0}", where);
         if (programs_changed && !date_changed)
         {
             CheckBoxFilter(programGrid);
             ChartAction(form, graphController);
         }
         else if (date_changed && !programs_changed)
         {
             graphController.whereAnd = whereAnd;
             graphController.where    = whereController;
             ChartAction(form, graphController);
         }
         else if (date_changed && programs_changed)
         {
             CheckBoxFilter(programGrid);
             graphController.whereAnd = whereAnd;
             graphController.where    = whereController;
             ChartAction(form, graphController);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }