From ee4cabb631678f5ba7bdd36a1bf68cca965229d8 Mon Sep 17 00:00:00 2001 From: "Amir.H Khademi" Date: Sun, 7 Mar 2021 16:14:25 +0330 Subject: [PATCH] Update Packages --- PlixP/App.xaml | 4 +++- PlixP/App.xaml.cs | 3 +++ PlixP/PlixP.csproj | 12 ++++++------ PlixP/Services/MovieServices.cs | 2 +- PlixP/Views/Dialogs/GenresDialog.xaml | 2 +- PlixP/Views/Dialogs/MovieDialog.xaml | 8 ++++---- PlixP/Views/MainWindow.xaml | 2 +- PlixP/Views/MovieList.xaml | 6 +++--- 8 files changed, 22 insertions(+), 17 deletions(-) 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 @@