Пример #1
0
        private AnalysisStrings[] getAnalysisStrings()
        {
            AnalysisStrings[] aStrings = new AnalysisStrings[5];
            var analysisLabels         = DBHelper.GetAnalysisLabels();
            var parameters             = DBHelper.GetAnalysisParameters();

            for (int i = 0; i < aStrings.Length; i++)
            {
                aStrings[i].Labels     = analysisLabels[i];
                aStrings[i].Parameters = parameters[i];
            }
            return(aStrings);
        }
        public void SetAnalysisStrings(AnalysisStrings values)
        {
            label1.Text = values.Labels[0];
            label2.Text = values.Labels[1];
            label3.Text = values.Labels[2];
            label4.Text = values.Labels[3];
            label5.Text = values.Labels[4];
            label6.Text = values.Labels[5];


            ParametersCheckBox.Items.Clear();


            foreach (var item in values.Parameters)
            {
                ParametersCheckBox.Items.Add(item);
            }
        }