Beispiel #1
0
 private void Drawer(DataGridView dgv, LoTVTeamListClass List)
 {
     string[] TeamsNames = List.LoTVTeamNamesReturn(out Ratings);
       for (int i = 15; i >= 0; i--)
       {
     dgv.Rows[15 - i].Cells[0].Value = TeamsNames[i];
     dgv.Rows[15 - i].Cells[1].Value = Ratings[i];
       }
 }
Beispiel #2
0
 private void _ctrlLoadBaton_Click(object sender, EventArgs e)
 {
     if (OFD.ShowDialog() == DialogResult.OK)
       {
     StreamReader Txt = new StreamReader(OFD.FileName);
     try
     {
       Teams = Parser.ParseList(Txt.ReadToEnd());
       Txt.Close();
       Drawer(_ctrlDGVIn, Teams);
     }
     catch
     {
       MessageBox.Show("Плохо отформатирован файл списка.");
     }
       }
 }
Beispiel #3
0
 private void _ctrlBaton_Click(object sender, EventArgs e)
 {
     Sorted = LoTVListSorter.Sorter(Teams);
      Drawer(_ctrlDGVOut, Sorted);
 }