private void LoadRest()
        {
            HeatmapForm heat   = new HeatmapForm();
            Graphs      graphs = new Graphs();

            List <Form> formList = new List <Form>()
            {
                heat, graphs
            };

            int i = 1;

            foreach (var form in formList)
            {
                form.MdiParent       = this;
                form.TopLevel        = false;
                form.Visible         = true;
                form.FormBorderStyle = FormBorderStyle.None;
                form.Dock            = DockStyle.Fill;
                tabMain.TabPages[i].Controls.Add(form);
                i++;
            }
        }
 public void ChartAction(Graphs form, GraphsController graphController)
 {
     form.graphicsController = graphController;
     form.AsyncRun();
 }
예제 #3
0
        private void btn_lineGraphs_Click(object sender, EventArgs e)
        {
            Graphs graphs = new Graphs();

            graphs.Show();
        }
 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());
     }
 }