diff --git a/FoxTube/MainPage.xaml.cs b/FoxTube/MainPage.xaml.cs index fe3eab4..17a0da0 100644 --- a/FoxTube/MainPage.xaml.cs +++ b/FoxTube/MainPage.xaml.cs @@ -43,20 +43,28 @@ namespace FoxTube public MainPage() { this.InitializeComponent(); + if(settings.Values["language"] == null) - { settings.Values.Add("language", 0); + if (settings.Values["quality"] == null) settings.Values.Add("quality", 0); + if (settings.Values["newVideoNotification"] == null) settings.Values.Add("newVideoNotification", true); + if (settings.Values["newCommentNotification"] == null) settings.Values.Add("newCommentNotification", true); + if (settings.Values["newPostNotification"] == null) settings.Values.Add("newPostNotification", true); + if (settings.Values["newmessagesNotification"] == null) settings.Values.Add("newmessagesNotification", true); + if (settings.Values["moblieWarning"] == null) settings.Values.Add("moblieWarning", false); + if (settings.Values["videoAutoplay"] == null) settings.Values.Add("videoAutoplay", true); + if (settings.Values["volume"] == null) settings.Values.Add("volume", 100); - } + content.Navigate(typeof(Home)); } diff --git a/FoxTube/Video.xaml.cs b/FoxTube/Video.xaml.cs index 55d8d95..065815c 100644 --- a/FoxTube/Video.xaml.cs +++ b/FoxTube/Video.xaml.cs @@ -26,5 +26,11 @@ namespace FoxTube { this.InitializeComponent(); } + + public void Load(string url, string title, + string author, string avatarUrl) + { + + } } }