예제 #1
0
 private void buttonMake_Click(object sender, EventArgs e)
 {
     try
     {
         var dict = logic.GetStudent();
         if (dict != null)
         {
             dataGridView.Rows.Clear();
             foreach (var date in dict)
             {
                 dataGridView.Rows.Add(new object[] { "", date.StudentName, date.NapravlenieName, date.Number, date.Kurs });
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }