Archived
1
0

Optimization, refactoring, debugging

Related Work Items: #251, #252, #261
This commit is contained in:
Michael Gordeev
2019-02-17 20:55:19 +03:00
parent be2418409f
commit 6a12c7809d
72 changed files with 2995 additions and 2632 deletions
+3 -8
View File
@@ -17,9 +17,6 @@ namespace FoxTube.Pages
List<string> entries;
int page = 1;
public string id = "HL";
LoadingPage loading;
VideoGrid list;
ShowMore more;
public History()
{
@@ -30,10 +27,6 @@ namespace FoxTube.Pages
{
base.OnNavigatedTo(e);
loading = grid.Children[2] as LoadingPage;
list = stack.Children[0] as VideoGrid;
more = stack.Children[1] as ShowMore;
loading.RefreshPage += Refresh_Click;
if (!string.IsNullOrWhiteSpace(e.Parameter.ToString()))
@@ -91,7 +84,9 @@ namespace FoxTube.Pages
list.Add(new VideoCard(entries[k]));
if (list.Count >= entries.Count)
more.Complete(true);
more.Visibility = Visibility.Collapsed;
else
more.Complete();
}
}
}