SHARE
TWEET

Untitled

a guest Aug 24th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void studentsToList()
  2.     {
  3.         ListBox items = new ListBox();
  4.         StudentListItem roundItem = new StudentListItem();
  5.         for (int x = 0; x < students.Count; x++)
  6.         {
  7.             roundItem.uc_txtStudentNumber.Content += Convert.ToString(students[x].Student_Number);
  8.             roundItem.uc_txtSurname.Content += Convert.ToString(students[x].Student_Name);
  9.             roundItem.uc_txtSurname.Content += Convert.ToString(students[x].Student_Gender);
  10.  
  11.             items.Items.Add(roundItem);
  12.         }
  13.     }
RAW Paste Data
Top