Optimization, refactoring, debugging
Related Work Items: #251, #252, #261
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user