private void updateMenu() { DataParser dataParser = new DataParser(ci); //parses Categories, Menu Items, and Components and displays them in the users language foreach (NSAMenuCategory category in menu) { //Do not Display "unassigned" category if (category.Id == 0) { continue; } ListViewGroup LVG = new ListViewGroup(dataParser.parseCategory(category.Name)); foreach (NSAMenuItem item in category.Items) { if (item.CategoryID != category.Id) { continue; } ListViewItem newitem = new ListViewItem(dataParser.parseItem(item.Name), item.Image, LVG); newitem.Tag = item; menuListView.Items.Add(newitem); } menuListView.Groups.Add(LVG); } ListViewGroup RandomGroup = new ListViewGroup(dataParser.parseCategory("Random")); ListViewItem randomItemLVI = new ListViewItem("Random Sandwich!", RandomGroup); NSARandomItem randomItem = new NSARandomItem(); randomItem.CategoryID = 1; randomItem.Price = 9.99; randomItem.MenuType = "Random!"; randomItem.Name = "Random"; randomItemLVI.Tag = randomItem; menuListView.Items.Add(randomItemLVI); menuListView.Groups.Add(RandomGroup); rm.GetString("accountNumber", ci); rm.GetString("accountNumber", ci); }