Beispiel #1
0
 void ShowTeachercs()
 {
     ListViewTeachers.Items.Clear();
     foreach (teacher add in Program.database.teacher)
     {
         ListViewItem item = new ListViewItem(new string[]
         {
             add.Id.ToString(), add.login, add.password, add.Name, add.Surname,
             add.Patronymic, add.Phone, add.Mail
         });
         item.Tag = add;
         ListViewTeachers.Items.Add(item);
     }
     ListViewTeachers.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
 }
Beispiel #2
0
 void ShowTeachercs()
 {
     ListViewTeachers.Items.Clear();
     foreach (teachers teacher in Program.school.teachers)
     {
         ListViewItem item = new ListViewItem(new string[]
         {
             teacher.Id.ToString(), teacher.Name, teacher.Surname,
             teacher.patronymic, teacher.iditems
         });
         item.Tag = teacher;
         ListViewTeachers.Items.Add(item);
     }
     ListViewTeachers.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
 }