@@ -83,7 +83,7 @@ namespace FoxTube.Pages
|
||||
loading.Refresh();
|
||||
playlistLoading.Refresh();
|
||||
|
||||
//try
|
||||
try
|
||||
{
|
||||
channelId = id;
|
||||
if (Methods.NeedToResponse)
|
||||
@@ -147,14 +147,14 @@ namespace FoxTube.Pages
|
||||
|
||||
loading.Close();
|
||||
}
|
||||
/*catch (System.Net.Http.HttpRequestException)
|
||||
catch (System.Net.Http.HttpRequestException)
|
||||
{
|
||||
loading.Error("System.Net.Http.HttpRequestException", "Unable to connect to Google servers.", true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
loading.Error(e.GetType().ToString(), e.Message);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
async void LoadPlaylist()
|
||||
|
||||
@@ -66,20 +66,5 @@ namespace FoxTube.Pages
|
||||
{
|
||||
await Launcher.LaunchFolderAsync(DownloadAgent.Downloads);
|
||||
}
|
||||
|
||||
/*private async void changePath_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
FolderPicker picker = new FolderPicker()
|
||||
{
|
||||
SuggestedStartLocation = PickerLocationId.Downloads,
|
||||
ViewMode = PickerViewMode.Thumbnail
|
||||
};
|
||||
picker.FileTypeFilter.Add(".shit"); //Because overwise it trhows an exception
|
||||
|
||||
StorageFolder p = await picker.PickSingleFolderAsync();
|
||||
if (p != null)
|
||||
settings.Values["defaultDownload"] = p.Path;
|
||||
path.Text = settings.Values["defaultDownload"] as string;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<Page
|
||||
NavigationCacheMode="Enabled"
|
||||
x:Class="FoxTube.Home"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace FoxTube
|
||||
|
||||
private void refreshPage(object sender, RoutedEventArgs e)
|
||||
{
|
||||
(Parent as Frame).Navigate(typeof(Home));
|
||||
Methods.MainPage.GoToHome();
|
||||
}
|
||||
|
||||
private void RecMore_Clicked()
|
||||
|
||||
@@ -285,6 +285,11 @@ namespace FoxTube
|
||||
content.Navigate(typeof(ChannelPage), id);
|
||||
}
|
||||
|
||||
public void GoToHome()
|
||||
{
|
||||
content.Navigate(typeof(Home));
|
||||
}
|
||||
|
||||
public async void GoToVideo(string id, string playlistId = null)
|
||||
{
|
||||
bool cancel = false;
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace FoxTube.Pages
|
||||
|
||||
private void refresh_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Initialize(playlistId);
|
||||
Methods.MainPage.GoToPlaylist(playlistId);
|
||||
}
|
||||
|
||||
private void share_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
@@ -185,7 +185,7 @@ namespace FoxTube
|
||||
|
||||
private void AppBarButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Initialize(Parameters);
|
||||
Methods.MainPage.GoToSearch(Parameters);
|
||||
}
|
||||
|
||||
private async void more_Clicked()
|
||||
|
||||
@@ -330,8 +330,7 @@ namespace FoxTube.Pages
|
||||
|
||||
public void refresh_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
player = new VideoPlayer();
|
||||
Initialize(new string[2] { videoId, playlistId });
|
||||
Methods.MainPage.GoToVideo(videoId, playlistId);
|
||||
}
|
||||
|
||||
private void grid_SizeChanged(object sender, SizeChangedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user