diff --git a/PlixP/App.xaml b/PlixP/App.xaml index ae2ac54..f4b9df6 100644 --- a/PlixP/App.xaml +++ b/PlixP/App.xaml @@ -15,7 +15,9 @@ - + + + String 1A diff --git a/PlixP/App.xaml.cs b/PlixP/App.xaml.cs index d2e8394..ab704ec 100644 --- a/PlixP/App.xaml.cs +++ b/PlixP/App.xaml.cs @@ -6,6 +6,7 @@ using Prism.Ioc; using PlixP.Views; using System.Windows; using AutoMapper; +using HandyControl.Themes; using Microsoft.EntityFrameworkCore; using PlixP.Extentions; using PlixP.Models; @@ -38,6 +39,8 @@ namespace PlixP } } + ThemeManager.Current.ApplicationTheme = ApplicationTheme.Dark; + AutoMapperConfig.ConfigurationMapper(); App.Current.ConfigureExceptionHandling(AppDomain.CurrentDomain); MovieServiceRealTime.Instance.StartReal(); diff --git a/PlixP/PlixP.csproj b/PlixP/PlixP.csproj index 1a187a7..d8e52ee 100644 --- a/PlixP/PlixP.csproj +++ b/PlixP/PlixP.csproj @@ -16,16 +16,16 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/PlixP/Services/MovieServices.cs b/PlixP/Services/MovieServices.cs index 68a268b..b9acb8d 100644 --- a/PlixP/Services/MovieServices.cs +++ b/PlixP/Services/MovieServices.cs @@ -354,7 +354,7 @@ namespace PlixP.Services MovieCount = 1, Name = trim }; - foreach (var movie in Movies.Where(m=>m.Genre.Contains(trim))) + foreach (var movie in Movies.Where(m=>m.Genre!=null && m.Genre.Contains(trim))) { var poster = movie.Poster; if (!genres.Any(g => g.Image == poster)) diff --git a/PlixP/Views/Dialogs/GenresDialog.xaml b/PlixP/Views/Dialogs/GenresDialog.xaml index 3d2ad28..3f51ff2 100644 --- a/PlixP/Views/Dialogs/GenresDialog.xaml +++ b/PlixP/Views/Dialogs/GenresDialog.xaml @@ -31,7 +31,7 @@