Skip to content

Instantly share code, notes, and snippets.

@wtuts
Created June 24, 2014 19:58
Show Gist options
  • Save wtuts/c3c148b47de79ceb9882 to your computer and use it in GitHub Desktop.
Save wtuts/c3c148b47de79ceb9882 to your computer and use it in GitHub Desktop.
Hub tiles-Part 2
//Function to add the items into the listbox
public void addtheitems()
{
for (int i = 0; i < 6; i++)
{
//Create a new object
Tileclass obj = new Tileclass();
//add the title,notification and source from the sample data
obj.title = arrayoftitle[i];
obj.notification = arrayofnotification[i];
obj.source = "Images/" + imagesource[i];
//Group them into same category that is give them common tag called tiles
obj.tag = "Tiles";
mylistbox.Items.Add(obj);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment