Example #1
0
 static public void WraitISData(DataGridView datagrid, IS.Data.Evaluation Information, int round)
 {
     for (int i = 0; i < Information.Teorical.Count; i++)
     {
         datagrid.Rows.Add(
             Information.Teorical[i].Name,
             Information.Teorical[i].Q0 == -1 ? "" : Math.Round(Information.Teorical[i].Q0, round).ToString(),
             Math.Round(Information.Teorical[i].Q, round).ToString(),
             Information.Teorical[i].Q0 == -1 ? "" : Math.Round(Information.Teorical[i].Q - Information.Teorical[i].Q0, round).ToString());
     }
 }
Example #2
0
        static public void ShowISData(Chart EvaluationChart, IS.Data.Evaluation Evaluation)
        {
            EvaluationChart.ChartAreas[0].AxisY.Maximum = 0;

            for (int i = 0; i < Evaluation.Practical.Count; i++)
            {
                EvaluationChart.ChartAreas[0].AxisY.Maximum =
                    Math.Max(EvaluationChart.ChartAreas[0].AxisY.Maximum,
                             Evaluation.Practical[i].Q[Evaluation.Practical[i].Q.Count - 1].Y * 1.5);
                EvaluationChart.Series.Add(Evaluation.EvauationSeries[i]);
                EvaluationChart.Series.Add(Evaluation.EvauationSeries[i + Evaluation.Practical.Count]);
            }
        }
Example #3
0
 static public void ShowEvaluationTreeView(IS.Data.Evaluation Evaluation, TreeView EvaluationTreeView)
 {
     EvaluationTreeView.Nodes.Clear();
     for (int i = 0; i < Evaluation.EvauationSeries.Count / 2; i++)
     {
         EvaluationTreeView.Nodes.Add(new TreeNode()
         {
             Text      = Evaluation.EvauationSeries[i].Name,
             ForeColor = Evaluation.EvauationSeries[i].Color,
             Checked   = true
         });
     }
 }