Exemplo n.º 1
0
 private List<TouchComboBoxItem> GetCategoryComboItems()
 {
     var categoryComboItems = new List<TouchComboBoxItem>();
     var categoryList = DiningDAL.GetInstance().GetSubCategories(Convert.ToInt32(_categoryId));
     foreach (var category in categoryList)
     {
         var categoryComboItem = new TouchComboBoxItem();
         categoryComboItem.DisplayText = category.Title;
         categoryComboItem.Item = category.Id;
         categoryComboItems.Add(categoryComboItem);
     }
     return categoryComboItems;
 }
 private List<TouchComboBoxItem> GetCategoryComboItems()
 {
     var categoryComboItems = new List<TouchComboBoxItem>();
     var categoryList = CalendarDAL.GetInstance().GetCategories();
     foreach (var category in categoryList)
     {
         var categoryComboItem = new TouchComboBoxItem();
         categoryComboItem.DisplayText = category.Title;
         categoryComboItem.Item = category.Id;
         categoryComboItems.Add(categoryComboItem);
     }
     return categoryComboItems;
 }