Archived
1
0

History (local)

This commit is contained in:
Michael Gordeev
2018-11-09 22:27:51 +03:00
parent 4d13ea1226
commit 1a6447a4aa
9 changed files with 100 additions and 56 deletions
+14 -28
View File
@@ -1,17 +1,8 @@
using FoxTube.Controls;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
@@ -24,15 +15,19 @@ namespace FoxTube.Pages
public sealed partial class History : Page
{
LoadingPage loading;
ShowMore more;
VideoGrid list;
public History()
{
this.InitializeComponent();
InitializeComponent();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
loading = grid.Children[2] as LoadingPage;
more = stack.Children[1] as ShowMore;
list = stack.Children[0] as VideoGrid;
list = scroll.Content as VideoGrid;
Initialize();
}
@@ -40,24 +35,15 @@ namespace FoxTube.Pages
{
loading.Refresh();
more.Complete(true);
list.Clear();
SecretsVault.UserHistory.ForEach(i => list.Add(new VideoCard(i)));
loading.Block();
loading.Close();
}
private void ShowMore_Clicked()
private async void toBrowser_Click(object sender, RoutedEventArgs e)
{
}
private void toBrowser_Click(object sender, RoutedEventArgs e)
{
}
private void refresh_Click(object sender, RoutedEventArgs e)
{
await Launcher.LaunchUriAsync(new Uri("youtube.com/feed/history"));
}
}
}