コード例 #1
0
ファイル: LabsView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void FillControls()
        {
            chart1.SeriesCollection.Clear();
            flowLayoutPanel1.Controls.Clear();

            foreach (LabResult lab in theLabs)
            {
                LabRow bisRow = new LabRow(lab);
                bisRow.owningView = this;
                bisRow.SetScrollState(false);
                flowLayoutPanel1.Controls.Add(bisRow);

                string name = lab.TestShort;
                if (string.IsNullOrEmpty(lab.TestShort))
                {
                    name = "n/a";
                }

                chart1.Series.Element = new dotnetCHARTING.WinForms.Element(name, lab.date, 2, 2);
                chart1.Series.Elements.Add();
            }
            chart1.SeriesCollection.Add();
            chart1.Refresh();

            loadingCircle1.Active  = false;
            loadingCircle1.Visible = false;
        }
コード例 #2
0
ファイル: LabsView.cs プロジェクト: mahitosh/HRA4
        /**************************************************************************************************/
        private void FillControls()
        {
            chart1.SeriesCollection.Clear();
            flowLayoutPanel1.Controls.Clear();

            foreach (LabResult lab in theLabs)
            {
                LabRow bisRow = new LabRow(lab);
                bisRow.owningView = this;
                bisRow.SetScrollState(false);
                flowLayoutPanel1.Controls.Add(bisRow);

                string name = lab.TestShort;
                if (string.IsNullOrEmpty(lab.TestShort))
                    name = "n/a";

                chart1.Series.Element = new dotnetCHARTING.WinForms.Element(name, lab.date, 2, 2);
                chart1.Series.Elements.Add();
            }
            chart1.SeriesCollection.Add();
            chart1.Refresh();

            loadingCircle1.Active = false;
            loadingCircle1.Visible = false;
        }