private void LoadCategories() { var categories = _categoryDataRepository.List(0); foreach (var category in categories) { Cards.Add(new CardModel { DisplayName = category.Name, Id = category.Id, ImageSource = category.IconPath }); } }
private void LoadViewData(int id) { var applications = _applicationDataRepository.List(id); foreach (var application in applications) { Cards.Add(new CardModel { DisplayName = application.Name, Id = application.Id }); } }
private void LoadShortcuts(int id) { Cards.Clear(); var shortcuts = _shortcutDataRepository.List(id); foreach (var shortcut in shortcuts) { Cards.Add(new ShortcutViewModel { Shortcut = new ShortcutDetails { ShortcutId = shortcut.Id, Shortcut = shortcut.Name, ShortcutUsage = shortcut.Keys } }); } }