From 7ad0dfe96e2406f17b6a5a5b162a2876b8ce8ff8 Mon Sep 17 00:00:00 2001 From: David Palmer Date: Fri, 26 Jul 2024 22:49:18 -0500 Subject: [PATCH] Made SetDebugFlag static. Moved LoadingSplash and Workspace to Controls folder. --- Horizon/App.xaml.cs | 6 +++--- Horizon/View/{ => Windows}/LoadingSplash.xaml | 2 +- Horizon/View/{ => Windows}/LoadingSplash.xaml.cs | 2 +- Horizon/{ => View/Windows}/Workspace.xaml | 5 ++--- Horizon/{ => View/Windows}/Workspace.xaml.cs | 6 ++---- 5 files changed, 9 insertions(+), 12 deletions(-) rename Horizon/View/{ => Windows}/LoadingSplash.xaml (96%) rename Horizon/View/{ => Windows}/LoadingSplash.xaml.cs (95%) rename Horizon/{ => View/Windows}/Workspace.xaml (82%) rename Horizon/{ => View/Windows}/Workspace.xaml.cs (63%) diff --git a/Horizon/App.xaml.cs b/Horizon/App.xaml.cs index 81536d7..53f2a11 100644 --- a/Horizon/App.xaml.cs +++ b/Horizon/App.xaml.cs @@ -1,4 +1,4 @@ -using Horizon.View; +using Horizon.View.Windows; using ReactiveUI; using Serilog; using Serilog.Formatting.Compact; @@ -54,7 +54,7 @@ public partial class App : Application /// protected override async void OnStartup(StartupEventArgs args) { - this.SetDebugFlag(); + SetDebugFlag(); this.InitializeLogging(); base.OnStartup(args); @@ -147,7 +147,7 @@ private void OnUnhandledException(object sender, DispatcherUnhandledExceptionEve /// /// Sets the debug flag. /// - private void SetDebugFlag() + private static void SetDebugFlag() { #if DEBUG IsDebug = true; diff --git a/Horizon/View/LoadingSplash.xaml b/Horizon/View/Windows/LoadingSplash.xaml similarity index 96% rename from Horizon/View/LoadingSplash.xaml rename to Horizon/View/Windows/LoadingSplash.xaml index eec8543..6e0b101 100644 --- a/Horizon/View/LoadingSplash.xaml +++ b/Horizon/View/Windows/LoadingSplash.xaml @@ -1,4 +1,4 @@ - /// Interaction logic for LoadingSplash.xaml diff --git a/Horizon/Workspace.xaml b/Horizon/View/Windows/Workspace.xaml similarity index 82% rename from Horizon/Workspace.xaml rename to Horizon/View/Windows/Workspace.xaml index 8279554..b6c7353 100644 --- a/Horizon/Workspace.xaml +++ b/Horizon/View/Windows/Workspace.xaml @@ -1,9 +1,8 @@ - diff --git a/Horizon/Workspace.xaml.cs b/Horizon/View/Windows/Workspace.xaml.cs similarity index 63% rename from Horizon/Workspace.xaml.cs rename to Horizon/View/Windows/Workspace.xaml.cs index 5c3256f..f64bcad 100644 --- a/Horizon/Workspace.xaml.cs +++ b/Horizon/View/Windows/Workspace.xaml.cs @@ -1,11 +1,9 @@ -using System.Windows; - -namespace Horizon; +namespace Horizon.View.Windows; /// /// Interaction logic for MainWindow.xaml /// -public partial class Workspace : Window +public partial class Workspace { public Workspace() {