Example #1
0
        private void RemoveButton_Click(object sender, RoutedEventArgs e)
        {
            var currentItem = VisualHelper.GetListViewItem <FavoriteKeyModel>(sender as Button);

            if (currentItem != null)
            {
                var item = Favorites.Where(item => item.Key.Equals(currentItem.Key));

                Favorites.Remove(item.SingleOrDefault());
                FavoriteHelper.AddToFavorite(0, currentItem);
                ShowEmptyNotify();
            }
        }
Example #2
0
        private void OpenButton_Click(object sender, RoutedEventArgs e)
        {
            var item = VisualHelper.GetListViewItem <SearchModel>(sender as Button);

            GoToDownloadPage(item);
        }