diff --git a/src/CamBooth/CamBooth.App/App.xaml b/src/CamBooth/CamBooth.App/App.xaml index 7bb60b2..cfcaa33 100644 --- a/src/CamBooth/CamBooth.App/App.xaml +++ b/src/CamBooth/CamBooth.App/App.xaml @@ -1,8 +1,14 @@  - + + + + + + diff --git a/src/CamBooth/CamBooth.App/App.xaml.cs b/src/CamBooth/CamBooth.App/App.xaml.cs index 2e49d9d..c25cd24 100644 --- a/src/CamBooth/CamBooth.App/App.xaml.cs +++ b/src/CamBooth/CamBooth.App/App.xaml.cs @@ -7,6 +7,7 @@ using CamBooth.App.Core.AppSettings; using CamBooth.App.Core.Logging; using CamBooth.App.DebugConsole; using CamBooth.App.LiveView; +using CamBooth.App.PictureGallery; using Microsoft.Extensions.DependencyInjection; @@ -39,5 +40,6 @@ public partial class App : Application services.AddTransient(); services.AddSingleton(); services.AddSingleton(); + services.AddSingleton(); } } \ No newline at end of file diff --git a/src/CamBooth/CamBooth.App/CamBooth.App.csproj b/src/CamBooth/CamBooth.App/CamBooth.App.csproj index 664bf85..3d66261 100644 --- a/src/CamBooth/CamBooth.App/CamBooth.App.csproj +++ b/src/CamBooth/CamBooth.App/CamBooth.App.csproj @@ -25,6 +25,7 @@ + diff --git a/src/CamBooth/CamBooth.App/LiveView/LiveViewPage.xaml.cs b/src/CamBooth/CamBooth.App/LiveView/LiveViewPage.xaml.cs index 9f1bf13..6fcba1f 100644 --- a/src/CamBooth/CamBooth.App/LiveView/LiveViewPage.xaml.cs +++ b/src/CamBooth/CamBooth.App/LiveView/LiveViewPage.xaml.cs @@ -65,7 +65,7 @@ public partial class LiveViewPage : Page { this.OpenSession(); this.StarLiveView(); - this.SetCameraSaveToComputer(); + this.SetSettingSaveToComputer(); } string cameraDeviceNames = string.Join(", ", cameraList.Select(cam => cam.DeviceName)); @@ -81,7 +81,7 @@ public partial class LiveViewPage : Page } } - private void SetCameraSaveToComputer() + private void SetSettingSaveToComputer() { MainCamera.SetSetting(PropertyID.SaveTo, (int)SaveTo.Host); MainCamera.SetCapacity(4096, int.MaxValue); diff --git a/src/CamBooth/CamBooth.App/MainWindow.xaml b/src/CamBooth/CamBooth.App/MainWindow.xaml index 30b3815..d1ee414 100644 --- a/src/CamBooth/CamBooth.App/MainWindow.xaml +++ b/src/CamBooth/CamBooth.App/MainWindow.xaml @@ -3,43 +3,64 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" xmlns:local="clr-namespace:CamBooth.App" mc:Ignorable="d" - Title="MainWindow" Width="1600" Height="900" HorizontalAlignment="Stretch"> + Title="MainWindow" + Background="Black" + Width="1600" Height="900" + HorizontalAlignment="Stretch"> - + - - - + + + + - - + + + - -