From 99d6031429aff8e169d64c75a8bdd7fb74f9e1f2 Mon Sep 17 00:00:00 2001 From: Kytech Date: Thu, 12 Jan 2023 19:56:59 -0700 Subject: [PATCH] Add project files. --- App.xaml | 15 ++++++++++ App.xaml.cs | 51 ++++++++++++++++++++++++++++++++++ BootMan.csproj | 51 ++++++++++++++++++++++++++++++++++ BootMan.sln | 43 ++++++++++++++++++++++++++++ LICENSE.txt | 2 +- MainWindow.xaml | 13 +++++++++ MainWindow.xaml.cs | 36 ++++++++++++++++++++++++ Properties/launchSettings.json | 7 +++++ app.manifest | 23 +++++++++++++++ 9 files changed, 240 insertions(+), 1 deletion(-) create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 BootMan.csproj create mode 100644 BootMan.sln create mode 100644 MainWindow.xaml create mode 100644 MainWindow.xaml.cs create mode 100644 Properties/launchSettings.json create mode 100644 app.manifest diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..bcf71b1 --- /dev/null +++ b/App.xaml @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..a481f1a --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,51 @@ +using Microsoft.UI.Xaml; +using Microsoft.UI.Xaml.Controls; +using Microsoft.UI.Xaml.Controls.Primitives; +using Microsoft.UI.Xaml.Data; +using Microsoft.UI.Xaml.Input; +using Microsoft.UI.Xaml.Media; +using Microsoft.UI.Xaml.Navigation; +using Microsoft.UI.Xaml.Shapes; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.ApplicationModel; +using Windows.ApplicationModel.Activation; +using Windows.Foundation; +using Windows.Foundation.Collections; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace BootMan +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + public partial class App : Application + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + } + + /// + /// Invoked when the application is launched normally by the end user. Other entry points + /// will be used such as when the application is launched to open a specific file. + /// + /// Details about the launch request and process. + protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) + { + m_window = new MainWindow(); + m_window.Activate(); + } + + private Window m_window; + } +} diff --git a/BootMan.csproj b/BootMan.csproj new file mode 100644 index 0000000..e6616c7 --- /dev/null +++ b/BootMan.csproj @@ -0,0 +1,51 @@ + + + WinExe + net6.0-windows10.0.19041.0 + 10.0.17763.0 + BootMan + app.manifest + x86;x64;arm64 + win10-x86;win10-x64;win10-arm64 + win10-$(Platform).pubxml + true + true + None + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + diff --git a/BootMan.sln b/BootMan.sln new file mode 100644 index 0000000..1d04db7 --- /dev/null +++ b/BootMan.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32825.248 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BootMan", "BootMan.csproj", "{5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|arm64 = Debug|arm64 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|arm64 = Release|arm64 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|arm64.ActiveCfg = Debug|arm64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|arm64.Build.0 = Debug|arm64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|arm64.Deploy.0 = Debug|arm64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|x64.ActiveCfg = Debug|x64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|x64.Build.0 = Debug|x64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|x64.Deploy.0 = Debug|x64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|x86.ActiveCfg = Debug|x86 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|x86.Build.0 = Debug|x86 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Debug|x86.Deploy.0 = Debug|x86 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|arm64.ActiveCfg = Release|arm64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|arm64.Build.0 = Release|arm64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|arm64.Deploy.0 = Release|arm64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|x64.ActiveCfg = Release|x64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|x64.Build.0 = Release|x64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|x64.Deploy.0 = Release|x64 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|x86.ActiveCfg = Release|x86 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|x86.Build.0 = Release|x86 + {5066D2D3-7F08-4BBD-904E-CC77F7DB52CA}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {46D1A0BE-B6EF-42A2-930B-59DD2605459F} + EndGlobalSection +EndGlobal diff --git a/LICENSE.txt b/LICENSE.txt index ddd44f6..14c3913 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) [year], [fullname] +Copyright (c) 2023, Kyler Nelson Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..cab228b --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,13 @@ + + + + + + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs new file mode 100644 index 0000000..75aecfb --- /dev/null +++ b/MainWindow.xaml.cs @@ -0,0 +1,36 @@ +using Microsoft.UI.Xaml; +using Microsoft.UI.Xaml.Controls; +using Microsoft.UI.Xaml.Controls.Primitives; +using Microsoft.UI.Xaml.Data; +using Microsoft.UI.Xaml.Input; +using Microsoft.UI.Xaml.Media; +using Microsoft.UI.Xaml.Navigation; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace BootMan +{ + /// + /// An empty window that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainWindow : Window + { + public MainWindow() + { + this.InitializeComponent(); + } + + private void myButton_Click(object sender, RoutedEventArgs e) + { + myButton.Content = "Clicked"; + } + } +} diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..bfc2500 --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,7 @@ +{ + "profiles": { + "BootMan": { + "commandName": "Project" + } + } +} \ No newline at end of file diff --git a/app.manifest b/app.manifest new file mode 100644 index 0000000..f62e771 --- /dev/null +++ b/app.manifest @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + +