From cc49cf99668d3ef2e1827981441f7ffac9515369 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Fri, 8 Feb 2019 12:50:43 +0300 Subject: [PATCH] Optimizing, debugging, decorating --- FoxTube/App.xaml | 2 + FoxTube/App.xaml.cs | 63 +- FoxTube/Classes/DownloadAgent.cs | 1 + FoxTube/Classes/Methods.cs | 25 +- FoxTube/Classes/SecretsVault.cs | 46 +- FoxTube/Classes/SettingsStorage.cs | 160 ++--- FoxTube/Controls/ChannelCard.xaml.cs | 2 +- FoxTube/Controls/PlaylistCard.xaml.cs | 2 +- FoxTube/Controls/VideoCard.xaml | 4 +- FoxTube/Controls/VideoCard.xaml.cs | 100 +-- FoxTube/Controls/VideoPlayer.xaml | 26 +- FoxTube/Controls/VideoPlayer.xaml.cs | 32 +- FoxTube/FoxTube.csproj | 5 +- FoxTube/Pages/Browser.xaml | 3 +- FoxTube/Pages/Browser.xaml.cs | 12 +- FoxTube/Pages/ChannelPage.xaml.cs | 6 +- FoxTube/Pages/History.xaml.cs | 10 +- FoxTube/Pages/Home.xaml | 5 +- FoxTube/Pages/Home.xaml.cs | 51 +- FoxTube/Pages/LoadingPage.xaml | 1 + FoxTube/Pages/MainPage.xaml | 51 +- FoxTube/Pages/MainPage.xaml.cs | 711 ++++++++------------ FoxTube/Pages/PlaylistPage.xaml.cs | 2 - FoxTube/Pages/SettingsPages/About.xaml | 4 +- FoxTube/Pages/SettingsPages/About.xaml.cs | 6 +- FoxTube/Pages/SettingsPages/General.xaml.cs | 14 +- FoxTube/Pages/SettingsPages/Inbox.xaml | 23 +- FoxTube/Pages/SettingsPages/Inbox.xaml.cs | 3 - FoxTube/Pages/Subscriptions.xaml | 2 +- FoxTube/Pages/VideoGrid.xaml | 8 +- FoxTube/Pages/VideoGrid.xaml.cs | 11 +- FoxTube/Pages/VideoPage.xaml | 16 +- FoxTube/Strings/en-US/Main.resw | 2 +- FoxTube/Strings/ru-RU/Main.resw | 2 +- 34 files changed, 681 insertions(+), 730 deletions(-) diff --git a/FoxTube/App.xaml b/FoxTube/App.xaml index 41a4760..573cf86 100644 --- a/FoxTube/App.xaml +++ b/FoxTube/App.xaml @@ -5,5 +5,7 @@ xmlns:local="using:FoxTube"> Red + - - + + - + - @@ -81,12 +80,12 @@ + - - - + + @@ -99,8 +98,8 @@ diff --git a/FoxTube/Pages/VideoGrid.xaml b/FoxTube/Pages/VideoGrid.xaml index 0234a59..90e3ca6 100644 --- a/FoxTube/Pages/VideoGrid.xaml +++ b/FoxTube/Pages/VideoGrid.xaml @@ -15,7 +15,13 @@ - + + + + + + + diff --git a/FoxTube/Pages/VideoGrid.xaml.cs b/FoxTube/Pages/VideoGrid.xaml.cs index a5fbc90..7f077f6 100644 --- a/FoxTube/Pages/VideoGrid.xaml.cs +++ b/FoxTube/Pages/VideoGrid.xaml.cs @@ -1,8 +1,17 @@ using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; +namespace FoxTube +{ + public interface IItemCard + { + + } +} + namespace FoxTube.Pages { + /// /// Items cards container /// @@ -15,7 +24,7 @@ namespace FoxTube.Pages InitializeComponent(); } - public void Add(UIElement card) + public void Add(IItemCard card) { list.Items.Add(card); /*if (list.Items.Count % 10 == 0) diff --git a/FoxTube/Pages/VideoPage.xaml b/FoxTube/Pages/VideoPage.xaml index fc2d669..cd4be71 100644 --- a/FoxTube/Pages/VideoPage.xaml +++ b/FoxTube/Pages/VideoPage.xaml @@ -55,6 +55,10 @@ + + + + - - - - @@ -138,7 +138,13 @@ - + + + + + + + diff --git a/FoxTube/Strings/en-US/Main.resw b/FoxTube/Strings/en-US/Main.resw index a53def0..4df84a7 100644 --- a/FoxTube/Strings/en-US/Main.resw +++ b/FoxTube/Strings/en-US/Main.resw @@ -186,7 +186,7 @@ Create new Google account - + Log out diff --git a/FoxTube/Strings/ru-RU/Main.resw b/FoxTube/Strings/ru-RU/Main.resw index a7638c5..b05c24a 100644 --- a/FoxTube/Strings/ru-RU/Main.resw +++ b/FoxTube/Strings/ru-RU/Main.resw @@ -186,7 +186,7 @@ Создать новый аккаунт Google - + Выйти