нта №" + i + "";
row [1] = s;. dataGridView1.Rows.Add (row);
s = sr.ReadLine (); + +;
} [0] = "Довільна програма, оцінки компонентів";
row [1] = "";. dataGridView1.Rows.Add (row); = sr.ReadLine (); = 1; ((s.IndexOf ("***" ;) == -1) && (s.IndexOf ("///") == -1) &&
(s.IndexOf ("| | |") == -1) && (s.IndexOf ("") == -1) && (s! = "11"))
{[0] = "Середній бал елемента №" + i + "";
row [1] = s;. dataGridView1.Rows.Add (row); + +; = sr.ReadLine (); (s == null)
{= "11";
}
}. ShowDialog ();
} void timer1_Tick (object sender, EventArgs e)
{
} void linkLabel1_LinkClicked (object sender, LinkLabelLinkClickedEventArgs e)
{f = new Form3 (); (int i = 0; i <8; i + +)
{
f.chart1.Series ["Загальний результат"]. Points.AddXY (this.dataGridView1.Rows [i]. Cells [2]. Value.ToString (),. ToDouble (this.dataGridView1.Rows [i]. Cells [7]. Value.ToString ()));
f.chart1.Series ["Коротка програма"]. програма "].
}. ShowDialog ();
}
} Calculation
{List > ReadData (string YearOlympic, string Type)
{sr = File.OpenText ("Олімпіада" + YearOlympic + ". txt"); s1 = ""; > Data = new List < List > ();. Add (new List ());. Add (new List ());. Add (new List ());. Add (new List < ; string> ());. Add (new List ());. Add (new List ());. Add (new List ());. Add (new List ; ()); (s1! = null)
{= sr.ReadLine (); (s1! = null)
{(s1 == Type)
{= sr.ReadLine (); [2]. Add (s1); = sr.ReadLine (); [1]. Add (s1);
s1 = sr.ReadLine ();
s1 = sr.ReadLine (); = sr.ReadLine (); EstimatesComponents = 0, TechnicalResult = 0, ShortProgram, FreeSkating; (s1! = "Оцінка компонентів")
{= CalculationData (TechnicalResult, Convert.ToDouble (s1)); = sr.ReadLine ();
} = Math.Round (TechnicalResult, 2); = sr.ReadLine (); (s1! = "Довільна програма")
{= CalculationData (EstimatesComponents, Convert.ToDouble (s1)); = sr.ReadLine ();
} = Math.Round (EstimatesComponents, 2); = TechnicalResult + EstimatesComponents; = Math.Round (ShortProgram, 2); = 0; EstimatesComponents = 0; = sr.ReadLine (); = sr . ReadLine (); (s1! = "Оцінка компонентів")
{= CalculationData (TechnicalResult, Convert.ToDouble (s1)); = sr.ReadLine ();
} = Math....