From bf5606b68fe82346bd8922a8e2825d139b36c6ad Mon Sep 17 00:00:00 2001 From: Ricardo Tejo Date: Wed, 6 Nov 2019 09:12:22 -0500 Subject: [PATCH] Make it public --- .gitignore | 4 + App.xaml | 9 + App.xaml.cs | 20 ++ MainWindow.xaml | 64 +++++ MainWindow.xaml.cs | 88 +++++++ MonitorApi.cs | 113 +++++++++ MonitorControl.sln | 25 ++ MonitorControlNetCore.csproj | 25 ++ MonitorControlNetCore.csproj.user | 16 ++ MonitorManager.cs | 222 ++++++++++++++++++ .../PublishProfiles/FolderProfile.pubxml | 14 ++ .../PublishProfiles/FolderProfile.pubxml.user | 6 + README.md | 39 +++ icon.afdesign | Bin 0 -> 56329 bytes icon.ico | Bin 0 -> 38680 bytes ui.png | Bin 0 -> 14880 bytes 16 files changed, 645 insertions(+) create mode 100644 .gitignore create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 MainWindow.xaml create mode 100644 MainWindow.xaml.cs create mode 100644 MonitorApi.cs create mode 100644 MonitorControl.sln create mode 100644 MonitorControlNetCore.csproj create mode 100644 MonitorControlNetCore.csproj.user create mode 100644 MonitorManager.cs create mode 100644 Properties/PublishProfiles/FolderProfile.pubxml create mode 100644 Properties/PublishProfiles/FolderProfile.pubxml.user create mode 100644 README.md create mode 100644 icon.afdesign create mode 100644 icon.ico create mode 100644 ui.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c6de96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ + +/.vs +/obj +/bin diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..3592d21 --- /dev/null +++ b/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..e4d14a2 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,20 @@ +using System.Runtime.InteropServices; +using System.Windows; + +namespace MonitorControl +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + public App() + { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + MessageBox.Show("This application runs only on Windows", "Monitor Control", MessageBoxButton.OK, MessageBoxImage.Exclamation); + Application.Current.Shutdown(); + } + } + } +} diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..173586a --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +