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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +