Example #1
0
        public void SetInputData(List<cExtendedList> ListValues)
        {
            cPanelHisto PanelHisto = new cPanelHisto(ListValues, true, eGraphType.HISTOGRAM, eOrientation.HORIZONTAL);

            //  cDisplayHisto CpdToDisplayHisto = new cDisplayHisto();
            TMPWin.Controls.Add(PanelHisto.WindowForPanelHisto.panelForGraphContainer);

            //TMPWin.panel.Controls.Add(CpdToDisplayHisto);
        }
Example #2
0
        void DisplayGraphItem(object sender, EventArgs e)
        {
            FormForDisplay TMPWin = new FormForDisplay();
            Panel Pan = new Panel();
            Pan.Show();

            cExtendedList ListValue = new cExtendedList();
            for (int Idx = 0; Idx < this.listViewForClassifHistory.Items.Count; Idx++)
            {
               // this.listViewForCellPopulations.Items[Idx];
                ListValue.Add(double.Parse(this.listViewForClassifHistory.Items[Idx].SubItems[2].Text));
            }

             //   ListValue.Name = this.dt.Columns[e.ColumnIndex].ColumnName;

            cPanelHisto PanelHisto = new cPanelHisto(ListValue, eGraphType.LINE, eOrientation.HORIZONTAL);
            TMPWin.Controls.Add(PanelHisto.WindowForPanelHisto.panelForGraphContainer);
            TMPWin.Show();
        }
        private void RedrawHistoVertical()
        {
            cExtendedList ListValue = new cExtendedList();
            for (int Idx = 0; Idx < this.dt.Rows.Count; Idx++)
                ListValue.Add(double.Parse(this.dt.Rows[Idx][comboBoxAxeY.SelectedIndex].ToString()));

            cPanelHisto PanelHisto = new cPanelHisto(ListValue, eGraphType.HISTOGRAM, eOrientation.VERTICAL);
            PanelHisto.WindowForPanelHisto.panelForGraphContainer.BackColor = Color.White;
            PanelHisto.WindowForPanelHisto.panelForGraphContainer.Size = new System.Drawing.Size(splitContainerHorizontal.Panel1.Width, splitContainerVertical.Panel1.Height);
            PanelHisto.WindowForPanelHisto.panelForGraphContainer.Location = new Point(0, 0);

            PanelHisto.WindowForPanelHisto.panelForGraphContainer.Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            PanelHisto.WindowForPanelHisto.panelForGraphContainer.BorderStyle = BorderStyle.None;

            PanelHisto.WindowForPanelHisto.CurrentChartArea.AxisX.Minimum = chartForPoints.ChartAreas[0].AxisY.Minimum;
            PanelHisto.WindowForPanelHisto.CurrentChartArea.AxisX.Maximum = chartForPoints.ChartAreas[0].AxisY.Maximum;

            splitContainerHorizontal.Panel1.Controls.Clear();
            splitContainerHorizontal.Panel1.Controls.Add(PanelHisto.WindowForPanelHisto.panelForGraphContainer);
        }
Example #4
0
 public void SetInputData(cExtendedTable ListValues)
 {
     CurrentPanelHisto = new cPanelHisto(ListValues, true, eGraphType.LINE, this.Orientation);
 }
Example #5
0
        private void displayReferenceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (cGlobalInfo.CurrentScreening.Reference == null)
            {
                MessageBox.Show("No reference curve generated. Switch to Distribution mode.\n", "Error !", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            FormForDisplay TMPWin = new FormForDisplay();
            cExtendedList ListValues = cGlobalInfo.CurrentScreening.Reference.GetValues(cGlobalInfo.CurrentScreening.ListDescriptors.CurrentSelectedDescriptorIdx);
            ListValues.Name = cGlobalInfo.CurrentScreening.ListDescriptors[cGlobalInfo.CurrentScreening.ListDescriptors.CurrentSelectedDescriptorIdx].GetName();

            cPanelHisto PanelHisto = new cPanelHisto(ListValues, eGraphType.HISTOGRAM, eOrientation.HORIZONTAL);

            //  cDisplayHisto CpdToDisplayHisto = new cDisplayHisto();
            TMPWin.Controls.Add(PanelHisto.WindowForPanelHisto.panelForGraphContainer);

            //TMPWin.panel.Controls.Add(CpdToDisplayHisto);
            TMPWin.ShowDialog();

            //  cWindowToDisplayHisto NewWindow = new cWindowToDisplayHisto(CompleteScreening,CompleteScreening.Reference.GetValues(CompleteScreening.ListDescriptors.CurrentSelectedDescriptor));
            //   NewWindow.Show();
            //    NewWindow.chartForSimpleForm.ChartAreas.Add(CurrentChartArea);

            // cWindowToDisplayScatter NewWindow = new cWindowToDisplayScatter();
            //   NewWindow.chartForSimpleForm.Controls.Add(CompleteScreening.Reference.GetChart(CompleteScreening.ListDescriptors.CurrentSelectedDescriptor));
            //  NewWindow.Show();
            //cDisplayGraph DispGraph = new cDisplayGraph(CompleteScreening.Reference[CompleteScreening.ListDescriptors.CurrentSelectedDescriptor].ToArray(),
            //    CompleteScreening.ListDescriptors[CompleteScreening.ListDescriptors.CurrentSelectedDescriptor].GetName() + " - Reference distribution.");
        }