Exemple #1
0
 private void UpdateStudentsGrid()
 {
     StudentGrid.Items.Clear();
     students.Clear();
     foreach (var student in GetStudents())
     {
         students.Add(student);
         var row = new StudentRow(string.Format("{0} {1}. {2}.", student.Lastname, student.Firstname.Substring(0, 1),
                                                student.Patronymic.Substring(0, 1)),
                                  student.RBNumber, student.Group, EnumDecoder.FacultiesToString[student.Faculty.ToString()], "");
         StudentGrid.Items.Add(row);
     }
 }
Exemple #2
0
 void UpdateStudents()
 {
     StudentGrid.Items.Clear();
     _studentsCollection.Clear();
     foreach (var student in InitStudentTable())
     {
         var val =
             new StudentRow(
                 string.Format("{0} {1}. {2}.", student.Lastname, student.Firstname.Substring(0, 1),
                               student.Patronymic.Substring(0, 1)),
                 student.RBNumber, student.Group, EnumDecoder.FacultiesToString[student.Faculty.ToString()], student.PhoneNumber);
         StudentGrid.Items.Add(val);
     }
 }
 void UpdateStudents()
 {
     StudentGrid.Items.Clear();
     _studentsCollection.Clear();
     foreach (var student in InitStudentTable())
     {
         var val =
             new StudentRow(
                 string.Format("{0} {1}. {2}.", student.Lastname, student.Firstname.Substring(0, 1),
                     student.Patronymic.Substring(0, 1)),
                 student.RBNumber, student.Group, EnumDecoder.FacultiesToString[student.Faculty.ToString()], student.PhoneNumber);
         StudentGrid.Items.Add(val);
     }
 }
 private void UpdateStudentsGrid()
 {
     StudentGrid.Items.Clear();
     students.Clear();
     foreach (var student in GetStudents())
     {
         students.Add(student);
         var row = new StudentRow(string.Format("{0} {1}. {2}.", student.Lastname, student.Firstname.Substring(0, 1),
                     student.Patronymic.Substring(0, 1)),
                 student.RBNumber, student.Group, EnumDecoder.FacultiesToString[student.Faculty.ToString()], "");
         StudentGrid.Items.Add(row);
     }
 }