public void AddItemList(string item, string description, List <string> Test) { ListOfItems.Add(Index, item); ListOfDescription.Add(Index, description); var TestDictonary = new Dictionary <int, string>(); foreach (string i in Test) { TestDictonary.Add(IndexList, i); IndexList += 1; } IndexList = 1; ListDictionaryItemList.Add(TestDictonary); ListOfItemList.Add(Index); Sideway.Add(1); Index += 1; }
public void AddItem(string item, string description) { ListOfItems.Add(Index, item); ListOfDescription.Add(Index, description); Index += 1; }