Ejemplo n.º 1
0
        private void fillMeasuresGrid(string pesel)
        {
            DataSet ds = new DataSet();

            ds = db.getPatiensMeasures(pesel);
            measuresGridView.DataSource = ds.Tables[0];
        }
        private void fillGrid()
        {
            DataSet ds = new DataSet();

            ds = db.getPatiensMeasures(pesel);
            dataGridView.DataSource = ds.Tables[0];
        }
        private void BarChartForm_Load(object sender, EventArgs e)
        {
            titleLabel.Text = "Dane pacjenta " + pesel;

            hourListBox.Items.Add("wszystkie pomiary");
            hourListBox.Items.Add("poranne pomiary");
            hourListBox.Items.Add("wieczorne pomiary");

            ds = db.getPatiensMeasures(pesel);

            pulse.View.Color = System.Drawing.Color.Green;

            XYDiagram diagram = (XYDiagram)pressureChartControl.Diagram;

            diagram.AxisX.VisualRange.SetMinMaxValues(10, 200);
            diagram.AxisX.WholeRange.SetMinMaxValues(10, 200);
            diagram.AxisY.VisualRange.SetMinMaxValues(10, 100);
            diagram.AxisY.WholeRange.SetMinMaxValues(10, 100);
            BarSeriesView myView = (BarSeriesView)systolic.View;

            myView.BarWidth = 8;
            myView          = (BarSeriesView)diastolic.View;
            myView.BarWidth = 8;

            diagram = (XYDiagram)pulseChartControl.Diagram;
            diagram.AxisX.VisualRange.SetMinMaxValues(10, 200);
            diagram.AxisX.WholeRange.SetMinMaxValues(10, 200);
            diagram.AxisY.VisualRange.SetMinMaxValues(10, 100);
            diagram.AxisY.WholeRange.SetMinMaxValues(10, 100);
            myView          = (BarSeriesView)pulse.View;
            myView.BarWidth = 8;
        }
        private void RangeAreaChartForm_Load(object sender, EventArgs e)
        {
            titleLabel.Text = "Dane pacjenta " + pesel;

            hourListBox.Items.Add("wszystkie pomiary");
            hourListBox.Items.Add("poranne pomiary");
            hourListBox.Items.Add("wieczorne pomiary");
            hourListBox.Items.Add("porównaj poranne i wieczorne pomiary");

            ds = db.getPatiensMeasures(pesel);

            pressure.ArgumentScaleType = ScaleType.DateTime;
            pulse.ArgumentScaleType    = ScaleType.DateTime;
            pressure.ValueScaleType    = ScaleType.Numerical;
            pulse.ValueScaleType       = ScaleType.Numerical;

            (chartControl1.Diagram as XYDiagram).AxisX.DateTimeScaleOptions.AggregateFunction = AggregateFunction.None;
            (chartControl1.Diagram as XYDiagram).AxisX.DateTimeScaleOptions.MeasureUnit       = DateTimeMeasureUnit.Second;
        }
        private void CorelationChartForm_Load(object sender, EventArgs e)
        {
            titleLabel.Text = "Dane pacjenta " + pesel;

            hourListBox.Items.Add("wszystkie pomiary");
            hourListBox.Items.Add("poranne pomiary");
            hourListBox.Items.Add("wieczorne pomiary");

            morningSeries.ArgumentScaleType = ScaleType.Numerical;
            eveningSeries.ArgumentScaleType = ScaleType.Numerical;
            morningSeries.View.Color        = System.Drawing.Color.Green;
            eveningSeries.View.Color        = System.Drawing.Color.Blue;

            XYDiagram diagram = (XYDiagram)chartControl1.Diagram;

            diagram.AxisX.VisualRange.SetMinMaxValues(20, 180);
            diagram.AxisX.WholeRange.SetMinMaxValues(20, 180);
            diagram.AxisY.VisualRange.SetMinMaxValues(20, 180);
            diagram.AxisY.WholeRange.SetMinMaxValues(20, 180);

            ds = db.getPatiensMeasures(pesel);
        }