diff --git a/Obsidian Notes/ReCodeIt/.obsidian/app.json b/Obsidian Notes/ReCodeIt/.obsidian/app.json
new file mode 100644
index 0000000..9e26dfe
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/.obsidian/app.json
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/.obsidian/appearance.json b/Obsidian Notes/ReCodeIt/.obsidian/appearance.json
new file mode 100644
index 0000000..c8c365d
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/.obsidian/appearance.json
@@ -0,0 +1,3 @@
+{
+ "accentColor": ""
+}
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/.obsidian/core-plugins-migration.json b/Obsidian Notes/ReCodeIt/.obsidian/core-plugins-migration.json
new file mode 100644
index 0000000..436f43c
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/.obsidian/core-plugins-migration.json
@@ -0,0 +1,30 @@
+{
+ "file-explorer": true,
+ "global-search": true,
+ "switcher": true,
+ "graph": true,
+ "backlink": true,
+ "canvas": true,
+ "outgoing-link": true,
+ "tag-pane": true,
+ "properties": false,
+ "page-preview": true,
+ "daily-notes": true,
+ "templates": true,
+ "note-composer": true,
+ "command-palette": true,
+ "slash-command": false,
+ "editor-status": true,
+ "bookmarks": true,
+ "markdown-importer": false,
+ "zk-prefixer": false,
+ "random-note": false,
+ "outline": true,
+ "word-count": true,
+ "slides": false,
+ "audio-recorder": false,
+ "workspaces": false,
+ "file-recovery": true,
+ "publish": false,
+ "sync": false
+}
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/.obsidian/core-plugins.json b/Obsidian Notes/ReCodeIt/.obsidian/core-plugins.json
new file mode 100644
index 0000000..9405bfd
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/.obsidian/core-plugins.json
@@ -0,0 +1,20 @@
+[
+ "file-explorer",
+ "global-search",
+ "switcher",
+ "graph",
+ "backlink",
+ "canvas",
+ "outgoing-link",
+ "tag-pane",
+ "page-preview",
+ "daily-notes",
+ "templates",
+ "note-composer",
+ "command-palette",
+ "editor-status",
+ "bookmarks",
+ "outline",
+ "word-count",
+ "file-recovery"
+]
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/.obsidian/graph.json b/Obsidian Notes/ReCodeIt/.obsidian/graph.json
new file mode 100644
index 0000000..42a46ec
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/.obsidian/graph.json
@@ -0,0 +1,22 @@
+{
+ "collapse-filter": true,
+ "search": "",
+ "showTags": false,
+ "showAttachments": false,
+ "hideUnresolved": false,
+ "showOrphans": true,
+ "collapse-color-groups": true,
+ "colorGroups": [],
+ "collapse-display": true,
+ "showArrow": false,
+ "textFadeMultiplier": 0,
+ "nodeSizeMultiplier": 1,
+ "lineSizeMultiplier": 1,
+ "collapse-forces": true,
+ "centerStrength": 0.518713248970312,
+ "repelStrength": 10,
+ "linkStrength": 1,
+ "linkDistance": 250,
+ "scale": 1,
+ "close": true
+}
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/.obsidian/workspace.json b/Obsidian Notes/ReCodeIt/.obsidian/workspace.json
new file mode 100644
index 0000000..4ffc265
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/.obsidian/workspace.json
@@ -0,0 +1,158 @@
+{
+ "main": {
+ "id": "379217465f549fca",
+ "type": "split",
+ "children": [
+ {
+ "id": "54c1949a2997d742",
+ "type": "tabs",
+ "children": [
+ {
+ "id": "3ba51241806af7df",
+ "type": "leaf",
+ "state": {
+ "type": "canvas",
+ "state": {
+ "file": "Untitled.canvas",
+ "viewState": {
+ "x": -860.3333740234375,
+ "y": -352.333251953125,
+ "zoom": 0
+ }
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "direction": "vertical"
+ },
+ "left": {
+ "id": "5b6afcf2ac9987d1",
+ "type": "split",
+ "children": [
+ {
+ "id": "633de3e685c77487",
+ "type": "tabs",
+ "children": [
+ {
+ "id": "8890b3cf74fd4a96",
+ "type": "leaf",
+ "state": {
+ "type": "file-explorer",
+ "state": {
+ "sortOrder": "alphabetical"
+ }
+ }
+ },
+ {
+ "id": "7f4412dd886a7682",
+ "type": "leaf",
+ "state": {
+ "type": "search",
+ "state": {
+ "query": "",
+ "matchingCase": false,
+ "explainSearch": false,
+ "collapseAll": false,
+ "extraContext": false,
+ "sortOrder": "alphabetical"
+ }
+ }
+ },
+ {
+ "id": "5bda2ad3b0974edd",
+ "type": "leaf",
+ "state": {
+ "type": "bookmarks",
+ "state": {}
+ }
+ }
+ ]
+ }
+ ],
+ "direction": "horizontal",
+ "width": 300
+ },
+ "right": {
+ "id": "823dd02d5532773c",
+ "type": "split",
+ "children": [
+ {
+ "id": "52bb8c1a37662004",
+ "type": "tabs",
+ "children": [
+ {
+ "id": "16f0b64c50ad965f",
+ "type": "leaf",
+ "state": {
+ "type": "backlink",
+ "state": {
+ "file": "Untitled.canvas",
+ "collapseAll": false,
+ "extraContext": false,
+ "sortOrder": "alphabetical",
+ "showSearch": false,
+ "searchQuery": "",
+ "backlinkCollapsed": false,
+ "unlinkedCollapsed": true
+ }
+ }
+ },
+ {
+ "id": "4cae092c09f416a0",
+ "type": "leaf",
+ "state": {
+ "type": "outgoing-link",
+ "state": {
+ "file": "Untitled.canvas",
+ "linksCollapsed": false,
+ "unlinkedCollapsed": true
+ }
+ }
+ },
+ {
+ "id": "9ac3d05213c572e2",
+ "type": "leaf",
+ "state": {
+ "type": "tag",
+ "state": {
+ "sortOrder": "frequency",
+ "useHierarchy": true
+ }
+ }
+ },
+ {
+ "id": "b92d0982927abb20",
+ "type": "leaf",
+ "state": {
+ "type": "outline",
+ "state": {
+ "file": "Untitled.canvas"
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "direction": "horizontal",
+ "width": 300,
+ "collapsed": true
+ },
+ "left-ribbon": {
+ "hiddenItems": {
+ "switcher:Open quick switcher": false,
+ "graph:Open graph view": false,
+ "canvas:Create new canvas": false,
+ "daily-notes:Open today's daily note": false,
+ "templates:Insert template": false,
+ "command-palette:Open command palette": false
+ }
+ },
+ "active": "3ba51241806af7df",
+ "lastOpenFiles": [
+ "Untitled.canvas",
+ "Untitled.md",
+ "Welcome.md"
+ ]
+}
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/Untitled.canvas b/Obsidian Notes/ReCodeIt/Untitled.canvas
new file mode 100644
index 0000000..91024d8
--- /dev/null
+++ b/Obsidian Notes/ReCodeIt/Untitled.canvas
@@ -0,0 +1,9 @@
+{
+ "nodes":[
+ {"id":"ffede66903965668","x":-1260,"y":-740,"width":660,"height":300,"color":"4","type":"text","text":"Targeted ReMap Assembly Patching (TRAP)\n\n- The ability to remap types on your own, get a remapped DLL to reference for your project, use it. Then patch your assembly back to original types, for testing/production.\n- This will allow for ultimate flexibility in being version agnostic as the manual re-mapper is able to find things between versions by creating patterns for it to match. It works in the same fashion as using LINQ at runtime, because that's essentially what it is.\n- Below is how your build process would be effected."},
+ {"id":"af0d96082e896559","x":-1260,"y":-360,"width":660,"height":300,"color":"3","type":"text","text":"1. Provide the target DLL we wish to modify\n3. Build your desired remaps for it in the GUI editor.\n4. Remap it\n5. Use the re-mapped DLL as a reference in your project (Im using stash search for testing as it has a ton of GClass references)\n6. Once you are ready to compile, you will compile the dll as normal and place ReCodeIt on your sys path somewhere, then run a post build command to have ReCodeit patch your assembly back to original Type data."}
+ ],
+ "edges":[
+ {"id":"01d35c343c0509f1","fromNode":"ffede66903965668","fromSide":"bottom","toNode":"af0d96082e896559","toSide":"top"}
+ ]
+}
\ No newline at end of file
diff --git a/Obsidian Notes/ReCodeIt/Untitled.md b/Obsidian Notes/ReCodeIt/Untitled.md
new file mode 100644
index 0000000..e69de29
diff --git a/ReCodeItGUI_WPF/App.xaml b/ReCodeItGUI_WPF/App.xaml
deleted file mode 100644
index 2493fa6..0000000
--- a/ReCodeItGUI_WPF/App.xaml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/ReCodeItGUI_WPF/App.xaml.cs b/ReCodeItGUI_WPF/App.xaml.cs
deleted file mode 100644
index 52db7ad..0000000
--- a/ReCodeItGUI_WPF/App.xaml.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
-using ReCodeItGUI_WPF.Services;
-using ReCodeItGUI_WPF.ViewModels.Pages;
-using ReCodeItGUI_WPF.ViewModels.Windows;
-using ReCodeItGUI_WPF.Views.Pages;
-using ReCodeItGUI_WPF.Views.Windows;
-using System.IO;
-using System.Reflection;
-using System.Windows.Threading;
-using Wpf.Ui;
-
-namespace ReCodeItGUI_WPF
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App
- {
- // The.NET Generic Host provides dependency injection, configuration, logging, and other services.
- // https://docs.microsoft.com/dotnet/core/extensions/generic-host
- // https://docs.microsoft.com/dotnet/core/extensions/dependency-injection
- // https://docs.microsoft.com/dotnet/core/extensions/configuration
- // https://docs.microsoft.com/dotnet/core/extensions/logging
- private static readonly IHost _host = Host
- .CreateDefaultBuilder()
- .ConfigureAppConfiguration(c => { c.SetBasePath(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)); })
- .ConfigureServices((context, services) =>
- {
- services.AddHostedService();
-
- // Page resolver service
- services.AddSingleton();
-
- // Theme manipulation
- services.AddSingleton();
-
- // TaskBar manipulation
- services.AddSingleton();
-
- // Service containing navigation, same as INavigationWindow... but without window
- services.AddSingleton();
-
- // Main window with navigation
- services.AddSingleton();
- services.AddSingleton();
-
- services.AddSingleton();
- services.AddSingleton();
- services.AddSingleton();
- services.AddSingleton();
- services.AddSingleton();
- services.AddSingleton();
- }).Build();
-
- ///
- /// Gets registered service.
- ///
- /// Type of the service to get.
- /// Instance of the service or .
- public static T GetService()
- where T : class
- {
- return _host.Services.GetService(typeof(T)) as T;
- }
-
- ///
- /// Occurs when the application is loading.
- ///
- private void OnStartup(object sender, StartupEventArgs e)
- {
- _host.Start();
- }
-
- ///
- /// Occurs when the application is closing.
- ///
- private async void OnExit(object sender, ExitEventArgs e)
- {
- await _host.StopAsync();
-
- _host.Dispose();
- }
-
- ///
- /// Occurs when an exception is thrown by an application but not handled.
- ///
- private void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
- {
- // For more info see https://docs.microsoft.com/en-us/dotnet/api/system.windows.application.dispatcherunhandledexception?view=windowsdesktop-6.0
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/AssemblyInfo.cs b/ReCodeItGUI_WPF/AssemblyInfo.cs
deleted file mode 100644
index 7ad982e..0000000
--- a/ReCodeItGUI_WPF/AssemblyInfo.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Windows;
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
-//(used if a resource is not found in the page,
-// app, or any theme specific resource dictionaries)
-)]
diff --git a/ReCodeItGUI_WPF/Assets/wpfui-icon-1024.png b/ReCodeItGUI_WPF/Assets/wpfui-icon-1024.png
deleted file mode 100644
index b70c4ed..0000000
Binary files a/ReCodeItGUI_WPF/Assets/wpfui-icon-1024.png and /dev/null differ
diff --git a/ReCodeItGUI_WPF/Assets/wpfui-icon-256.png b/ReCodeItGUI_WPF/Assets/wpfui-icon-256.png
deleted file mode 100644
index 6b5cf5d..0000000
Binary files a/ReCodeItGUI_WPF/Assets/wpfui-icon-256.png and /dev/null differ
diff --git a/ReCodeItGUI_WPF/Helpers/EnumToBooleanConverter.cs b/ReCodeItGUI_WPF/Helpers/EnumToBooleanConverter.cs
deleted file mode 100644
index 5d225a4..0000000
--- a/ReCodeItGUI_WPF/Helpers/EnumToBooleanConverter.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Globalization;
-using System.Windows.Data;
-using Wpf.Ui.Appearance;
-
-namespace ReCodeItGUI_WPF.Helpers
-{
- internal class EnumToBooleanConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (parameter is not String enumString)
- {
- throw new ArgumentException("ExceptionEnumToBooleanConverterParameterMustBeAnEnumName");
- }
-
- if (!Enum.IsDefined(typeof(ApplicationTheme), value))
- {
- throw new ArgumentException("ExceptionEnumToBooleanConverterValueMustBeAnEnum");
- }
-
- var enumValue = Enum.Parse(typeof(ApplicationTheme), enumString);
-
- return enumValue.Equals(value);
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (parameter is not String enumString)
- {
- throw new ArgumentException("ExceptionEnumToBooleanConverterParameterMustBeAnEnumName");
- }
-
- return Enum.Parse(typeof(ApplicationTheme), enumString);
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/Models/AppConfig.cs b/ReCodeItGUI_WPF/Models/AppConfig.cs
deleted file mode 100644
index 20f91b3..0000000
--- a/ReCodeItGUI_WPF/Models/AppConfig.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace ReCodeItGUI_WPF.Models
-{
- public class AppConfig
- {
- public string ConfigurationsFolder { get; set; }
-
- public string AppPropertiesFileName { get; set; }
- }
-}
diff --git a/ReCodeItGUI_WPF/Models/DataColor.cs b/ReCodeItGUI_WPF/Models/DataColor.cs
deleted file mode 100644
index b727552..0000000
--- a/ReCodeItGUI_WPF/Models/DataColor.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using System.Windows.Media;
-
-namespace ReCodeItGUI_WPF.Models
-{
- public struct DataColor
- {
- public Brush Color { get; set; }
- }
-}
diff --git a/ReCodeItGUI_WPF/ReCodeItGUI_WPF.csproj b/ReCodeItGUI_WPF/ReCodeItGUI_WPF.csproj
deleted file mode 100644
index d38989a..0000000
--- a/ReCodeItGUI_WPF/ReCodeItGUI_WPF.csproj
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- WinExe
- net8.0-windows
- app.manifest
- wpfui-icon.ico
- true
- enable
- enable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ReCodeItGUI_WPF/Resources/Translations.cs b/ReCodeItGUI_WPF/Resources/Translations.cs
deleted file mode 100644
index 61b0ddc..0000000
--- a/ReCodeItGUI_WPF/Resources/Translations.cs
+++ /dev/null
@@ -1,6 +0,0 @@
-namespace ReCodeItGUI_WPF.Resources
-{
- public partial class Translations
- {
- }
-}
diff --git a/ReCodeItGUI_WPF/Services/ApplicationHostService.cs b/ReCodeItGUI_WPF/Services/ApplicationHostService.cs
deleted file mode 100644
index 40002d6..0000000
--- a/ReCodeItGUI_WPF/Services/ApplicationHostService.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
-using ReCodeItGUI_WPF.Views.Pages;
-using ReCodeItGUI_WPF.Views.Windows;
-using Wpf.Ui;
-
-namespace ReCodeItGUI_WPF.Services
-{
- ///
- /// Managed host of the application.
- ///
- public class ApplicationHostService : IHostedService
- {
- private readonly IServiceProvider _serviceProvider;
-
- private INavigationWindow _navigationWindow;
-
- public ApplicationHostService(IServiceProvider serviceProvider)
- {
- _serviceProvider = serviceProvider;
- }
-
- ///
- /// Triggered when the application host is ready to start the service.
- ///
- /// Indicates that the start process has been aborted.
- public async Task StartAsync(CancellationToken cancellationToken)
- {
- await HandleActivationAsync();
- }
-
- ///
- /// Triggered when the application host is performing a graceful shutdown.
- ///
- /// Indicates that the shutdown process should no longer be graceful.
- public async Task StopAsync(CancellationToken cancellationToken)
- {
- await Task.CompletedTask;
- }
-
- ///
- /// Creates main window during activation.
- ///
- private async Task HandleActivationAsync()
- {
- if (!Application.Current.Windows.OfType().Any())
- {
- _navigationWindow = (
- _serviceProvider.GetService(typeof(INavigationWindow)) as INavigationWindow
- )!;
- _navigationWindow!.ShowWindow();
-
- _navigationWindow.Navigate(typeof(Views.Pages.DashboardPage));
- }
-
- await Task.CompletedTask;
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/Services/PageService.cs b/ReCodeItGUI_WPF/Services/PageService.cs
deleted file mode 100644
index 94b250a..0000000
--- a/ReCodeItGUI_WPF/Services/PageService.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using Wpf.Ui;
-
-namespace ReCodeItGUI_WPF.Services
-{
- ///
- /// Service that provides pages for navigation.
- ///
- public class PageService : IPageService
- {
- ///
- /// Service which provides the instances of pages.
- ///
- private readonly IServiceProvider _serviceProvider;
-
- ///
- /// Creates new instance and attaches the .
- ///
- public PageService(IServiceProvider serviceProvider)
- {
- _serviceProvider = serviceProvider;
- }
-
- ///
- public T? GetPage()
- where T : class
- {
- if (!typeof(FrameworkElement).IsAssignableFrom(typeof(T)))
- throw new InvalidOperationException("The page should be a WPF control.");
-
- return (T?)_serviceProvider.GetService(typeof(T));
- }
-
- ///
- public FrameworkElement? GetPage(Type pageType)
- {
- if (!typeof(FrameworkElement).IsAssignableFrom(pageType))
- throw new InvalidOperationException("The page should be a WPF control.");
-
- return _serviceProvider.GetService(pageType) as FrameworkElement;
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/Usings.cs b/ReCodeItGUI_WPF/Usings.cs
deleted file mode 100644
index 5efad98..0000000
--- a/ReCodeItGUI_WPF/Usings.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-global using CommunityToolkit.Mvvm.ComponentModel;
-global using CommunityToolkit.Mvvm.Input;
-global using System;
-global using System.Windows;
diff --git a/ReCodeItGUI_WPF/ViewModels/Pages/DashboardViewModel.cs b/ReCodeItGUI_WPF/ViewModels/Pages/DashboardViewModel.cs
deleted file mode 100644
index b25aa1e..0000000
--- a/ReCodeItGUI_WPF/ViewModels/Pages/DashboardViewModel.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace ReCodeItGUI_WPF.ViewModels.Pages
-{
- public partial class DashboardViewModel : ObservableObject
- {
- [ObservableProperty]
- private int _counter = 0;
-
- [RelayCommand]
- private void OnCounterIncrement()
- {
- Counter++;
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/ViewModels/Pages/DataViewModel.cs b/ReCodeItGUI_WPF/ViewModels/Pages/DataViewModel.cs
deleted file mode 100644
index 40c5f18..0000000
--- a/ReCodeItGUI_WPF/ViewModels/Pages/DataViewModel.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using ReCodeItGUI_WPF.Models;
-using System.Windows.Media;
-using Wpf.Ui.Controls;
-
-namespace ReCodeItGUI_WPF.ViewModels.Pages
-{
- public partial class DataViewModel : ObservableObject, INavigationAware
- {
- private bool _isInitialized = false;
-
- [ObservableProperty]
- private IEnumerable _colors;
-
- public void OnNavigatedTo()
- {
- if (!_isInitialized)
- InitializeViewModel();
- }
-
- public void OnNavigatedFrom() { }
-
- private void InitializeViewModel()
- {
- var random = new Random();
- var colorCollection = new List();
-
- for (int i = 0; i < 8192; i++)
- colorCollection.Add(
- new DataColor
- {
- Color = new SolidColorBrush(
- Color.FromArgb(
- (byte)200,
- (byte)random.Next(0, 250),
- (byte)random.Next(0, 250),
- (byte)random.Next(0, 250)
- )
- )
- }
- );
-
- Colors = colorCollection;
-
- _isInitialized = true;
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/ViewModels/Pages/SettingsViewModel.cs b/ReCodeItGUI_WPF/ViewModels/Pages/SettingsViewModel.cs
deleted file mode 100644
index edb7ce4..0000000
--- a/ReCodeItGUI_WPF/ViewModels/Pages/SettingsViewModel.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using Wpf.Ui.Appearance;
-using Wpf.Ui.Controls;
-
-namespace ReCodeItGUI_WPF.ViewModels.Pages
-{
- public partial class SettingsViewModel : ObservableObject, INavigationAware
- {
- private bool _isInitialized = false;
-
- [ObservableProperty]
- private string _appVersion = String.Empty;
-
- [ObservableProperty]
- private ApplicationTheme _currentTheme = ApplicationTheme.Unknown;
-
- public void OnNavigatedTo()
- {
- if (!_isInitialized)
- InitializeViewModel();
- }
-
- public void OnNavigatedFrom() { }
-
- private void InitializeViewModel()
- {
- CurrentTheme = ApplicationThemeManager.GetAppTheme();
- AppVersion = $"UiDesktopApp1 - {GetAssemblyVersion()}";
-
- _isInitialized = true;
- }
-
- private string GetAssemblyVersion()
- {
- return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString()
- ?? String.Empty;
- }
-
- [RelayCommand]
- private void OnChangeTheme(string parameter)
- {
- switch (parameter)
- {
- case "theme_light":
- if (CurrentTheme == ApplicationTheme.Light)
- break;
-
- ApplicationThemeManager.Apply(ApplicationTheme.Light);
- CurrentTheme = ApplicationTheme.Light;
-
- break;
-
- default:
- if (CurrentTheme == ApplicationTheme.Dark)
- break;
-
- ApplicationThemeManager.Apply(ApplicationTheme.Dark);
- CurrentTheme = ApplicationTheme.Dark;
-
- break;
- }
- }
- }
-}
diff --git a/ReCodeItGUI_WPF/ViewModels/Windows/MainWindowViewModel.cs b/ReCodeItGUI_WPF/ViewModels/Windows/MainWindowViewModel.cs
deleted file mode 100644
index 3111ace..0000000
--- a/ReCodeItGUI_WPF/ViewModels/Windows/MainWindowViewModel.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System.Collections.ObjectModel;
-using Wpf.Ui.Controls;
-
-namespace ReCodeItGUI_WPF.ViewModels.Windows
-{
- public partial class MainWindowViewModel : ObservableObject
- {
- [ObservableProperty]
- private string _applicationTitle = "WPF UI - ReCodeItGUI_WPF";
-
- [ObservableProperty]
- private ObservableCollection