Created
June 24, 2014 19:58
-
-
Save wtuts/c3c148b47de79ceb9882 to your computer and use it in GitHub Desktop.
Hub tiles-Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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