diff --git a/.gitignore b/.gitignore index 2fa3c75..89784e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,39 @@ +*.swp +*.*~ +project.lock.json +.DS_Store +*.pyc +nupkg/ packages/ + +# Visual Studio Code +.vscode + +# Rider +.idea + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +msbuild.log +msbuild.err +msbuild.wrn + +# Visual Studio 2015 .vs/ -/ScreenSleep/bin -/ScreenSleep/obj \ No newline at end of file + diff --git a/ScreenSleep/Screen.cs b/ScreenSleep/Screen.cs index add1707..40f27aa 100644 --- a/ScreenSleep/Screen.cs +++ b/ScreenSleep/Screen.cs @@ -14,9 +14,18 @@ public static class Screen [DllImport("user32.dll")] private static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam); + // See https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage + private const int Broadcast = 0xFFFF; + + // See https://docs.microsoft.com/en-us/windows/win32/menurc/wm-syscommand + // WM_SYSCOMMAND + private const int WmSyscommand = 0x112; + // SC_MONITORPOWER + private const int ScMonitorPower = 0xF170; + public static void SetScreenState(ScreenState state) { - SendMessage(0xFFFF, 0x112, 0xF170, (int)state); + SendMessage(Broadcast, WmSyscommand, ScMonitorPower, (int)state); } } diff --git a/ScreenSleep/ScreenSleep.csproj b/ScreenSleep/ScreenSleep.csproj index f688f2c..cb9bbc3 100644 --- a/ScreenSleep/ScreenSleep.csproj +++ b/ScreenSleep/ScreenSleep.csproj @@ -1,6 +1,6 @@  - + Debug @@ -55,15 +55,24 @@ Resources\icon-black.ico - - ..\packages\Costura.Fody.4.0.0\lib\net40\Costura.dll + + ..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll + True - - ..\packages\Hardcodet.NotifyIcon.Wpf.1.0.8\lib\net45\Hardcodet.Wpf.TaskbarNotification.dll + + ..\packages\Hardcodet.NotifyIcon.Wpf.1.1.0\lib\net45\Hardcodet.NotifyIcon.Wpf.dll + True + + + + + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + True + @@ -147,10 +156,12 @@ - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}. - - + + + - + + \ No newline at end of file diff --git a/ScreenSleep/bin/Release/ScreenSleep-1.0.0.7z b/ScreenSleep/bin/Release/ScreenSleep-1.0.0.7z deleted file mode 100644 index 44e541b..0000000 Binary files a/ScreenSleep/bin/Release/ScreenSleep-1.0.0.7z and /dev/null differ diff --git a/ScreenSleep/bin/Release/ScreenSleep-1.0.1.7z b/ScreenSleep/bin/Release/ScreenSleep-1.0.1.7z deleted file mode 100644 index f4e8181..0000000 Binary files a/ScreenSleep/bin/Release/ScreenSleep-1.0.1.7z and /dev/null differ diff --git a/ScreenSleep/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs b/ScreenSleep/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs deleted file mode 100644 index e5dc9b8..0000000 --- a/ScreenSleep/obj/Debug/.NETFramework,Version=v4.5.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")] diff --git a/ScreenSleep/obj/Debug/App.g.i.cs b/ScreenSleep/obj/Debug/App.g.i.cs deleted file mode 100644 index b8a723a..0000000 --- a/ScreenSleep/obj/Debug/App.g.i.cs +++ /dev/null @@ -1,70 +0,0 @@ -#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1C4E6256805A9A7A9DD708CE200DA60383E206F97E775C2CB20E6299C9E823D7" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using ScreenSleep; -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace ScreenSleep { - - - /// - /// App - /// - public partial class App : System.Windows.Application { - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public void InitializeComponent() { - - #line 5 "..\..\App.xaml" - this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); - - #line default - #line hidden - } - - /// - /// Application Entry Point. - /// - [System.STAThreadAttribute()] - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public static void Main() { - ScreenSleep.App app = new ScreenSleep.App(); - app.InitializeComponent(); - app.Run(); - } - } -} - diff --git a/ScreenSleep/obj/Debug/Costura/0C73831FB0FC5071F64B9595D594F909EFE2D7D5.costura.hardcodet.wpf.taskbarnotification.dll.compressed b/ScreenSleep/obj/Debug/Costura/0C73831FB0FC5071F64B9595D594F909EFE2D7D5.costura.hardcodet.wpf.taskbarnotification.dll.compressed deleted file mode 100644 index a31cc31..0000000 Binary files a/ScreenSleep/obj/Debug/Costura/0C73831FB0FC5071F64B9595D594F909EFE2D7D5.costura.hardcodet.wpf.taskbarnotification.dll.compressed and /dev/null differ diff --git a/ScreenSleep/obj/Debug/Costura/1F5CA3EF5E96786FDC7C152A6A59986E2177CDA0.costura.hardcodet.wpf.taskbarnotification.pdb.compressed b/ScreenSleep/obj/Debug/Costura/1F5CA3EF5E96786FDC7C152A6A59986E2177CDA0.costura.hardcodet.wpf.taskbarnotification.pdb.compressed deleted file mode 100644 index 2db6a00..0000000 Binary files a/ScreenSleep/obj/Debug/Costura/1F5CA3EF5E96786FDC7C152A6A59986E2177CDA0.costura.hardcodet.wpf.taskbarnotification.pdb.compressed and /dev/null differ diff --git a/ScreenSleep/obj/Debug/Costura/8384113BFB9BFA6B10EE2BD62D53DC36C7EC506E.costura.costura.dll.compressed b/ScreenSleep/obj/Debug/Costura/8384113BFB9BFA6B10EE2BD62D53DC36C7EC506E.costura.costura.dll.compressed deleted file mode 100644 index 037f3c0..0000000 Binary files a/ScreenSleep/obj/Debug/Costura/8384113BFB9BFA6B10EE2BD62D53DC36C7EC506E.costura.costura.dll.compressed and /dev/null differ diff --git a/ScreenSleep/obj/Debug/MainWindow.g.i.cs b/ScreenSleep/obj/Debug/MainWindow.g.i.cs deleted file mode 100644 index b7a1751..0000000 --- a/ScreenSleep/obj/Debug/MainWindow.g.i.cs +++ /dev/null @@ -1,122 +0,0 @@ -#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6E4E5F5345AF0BCC63D5B77C04DB588A5D967C6957FAAF25B1CA1A18B592CA6A" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using Hardcodet.Wpf.TaskbarNotification; -using ScreenSleep; -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace ScreenSleep { - - - /// - /// MainWindow - /// - public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { - - - #line 24 "..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal Hardcodet.Wpf.TaskbarNotification.TaskbarIcon MyNotifyIcon; - - #line default - #line hidden - - private bool _contentLoaded; - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public void InitializeComponent() { - if (_contentLoaded) { - return; - } - _contentLoaded = true; - System.Uri resourceLocater = new System.Uri("/ScreenSleep;component/mainwindow.xaml", System.UriKind.Relative); - - #line 1 "..\..\MainWindow.xaml" - System.Windows.Application.LoadComponent(this, resourceLocater); - - #line default - #line hidden - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] - void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { - switch (connectionId) - { - case 1: - - #line 13 "..\..\MainWindow.xaml" - ((ScreenSleep.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded); - - #line default - #line hidden - return; - case 2: - - #line 17 "..\..\MainWindow.xaml" - ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TurnOff_OnClick); - - #line default - #line hidden - return; - case 3: - - #line 18 "..\..\MainWindow.xaml" - ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings_OnClick); - - #line default - #line hidden - return; - case 4: - - #line 20 "..\..\MainWindow.xaml" - ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_OnClick); - - #line default - #line hidden - return; - case 5: - this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target)); - return; - } - this._contentLoaded = true; - } - } -} - diff --git a/ScreenSleep/obj/Debug/ScreenSleep_Content.g.i.cs b/ScreenSleep/obj/Debug/ScreenSleep_Content.g.i.cs deleted file mode 100644 index 90323ca..0000000 --- a/ScreenSleep/obj/Debug/ScreenSleep_Content.g.i.cs +++ /dev/null @@ -1,13 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("resources/icon-black.ico")] - - diff --git a/ScreenSleep/obj/Debug/Taskbar.g.i.cs b/ScreenSleep/obj/Debug/Taskbar.g.i.cs deleted file mode 100644 index f0c5296..0000000 --- a/ScreenSleep/obj/Debug/Taskbar.g.i.cs +++ /dev/null @@ -1,75 +0,0 @@ -#pragma checksum "..\..\Taskbar.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "37B09230702B3EEC3A1C5B5A78286CFE1F5061359DF6AF3A12D0A988DA6B069B" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using ScreenSleep; -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace ScreenSleep { - - - /// - /// MainWindow - /// - public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { - - private bool _contentLoaded; - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public void InitializeComponent() { - if (_contentLoaded) { - return; - } - _contentLoaded = true; - System.Uri resourceLocater = new System.Uri("/ScreenSleep;component/taskbar.xaml", System.UriKind.Relative); - - #line 1 "..\..\Taskbar.xaml" - System.Windows.Application.LoadComponent(this, resourceLocater); - - #line default - #line hidden - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] - void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { - this._contentLoaded = true; - } - } -} - diff --git a/ScreenSleep/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs b/ScreenSleep/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs deleted file mode 100644 index e5dc9b8..0000000 --- a/ScreenSleep/obj/Release/.NETFramework,Version=v4.5.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")] diff --git a/ScreenSleep/obj/Release/App.g.i.cs b/ScreenSleep/obj/Release/App.g.i.cs deleted file mode 100644 index b8a723a..0000000 --- a/ScreenSleep/obj/Release/App.g.i.cs +++ /dev/null @@ -1,70 +0,0 @@ -#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1C4E6256805A9A7A9DD708CE200DA60383E206F97E775C2CB20E6299C9E823D7" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using ScreenSleep; -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace ScreenSleep { - - - /// - /// App - /// - public partial class App : System.Windows.Application { - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public void InitializeComponent() { - - #line 5 "..\..\App.xaml" - this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); - - #line default - #line hidden - } - - /// - /// Application Entry Point. - /// - [System.STAThreadAttribute()] - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public static void Main() { - ScreenSleep.App app = new ScreenSleep.App(); - app.InitializeComponent(); - app.Run(); - } - } -} - diff --git a/ScreenSleep/obj/Release/Costura/0C73831FB0FC5071F64B9595D594F909EFE2D7D5.costura.hardcodet.wpf.taskbarnotification.dll.compressed b/ScreenSleep/obj/Release/Costura/0C73831FB0FC5071F64B9595D594F909EFE2D7D5.costura.hardcodet.wpf.taskbarnotification.dll.compressed deleted file mode 100644 index a31cc31..0000000 Binary files a/ScreenSleep/obj/Release/Costura/0C73831FB0FC5071F64B9595D594F909EFE2D7D5.costura.hardcodet.wpf.taskbarnotification.dll.compressed and /dev/null differ diff --git a/ScreenSleep/obj/Release/Costura/1F5CA3EF5E96786FDC7C152A6A59986E2177CDA0.costura.hardcodet.wpf.taskbarnotification.pdb.compressed b/ScreenSleep/obj/Release/Costura/1F5CA3EF5E96786FDC7C152A6A59986E2177CDA0.costura.hardcodet.wpf.taskbarnotification.pdb.compressed deleted file mode 100644 index 2db6a00..0000000 Binary files a/ScreenSleep/obj/Release/Costura/1F5CA3EF5E96786FDC7C152A6A59986E2177CDA0.costura.hardcodet.wpf.taskbarnotification.pdb.compressed and /dev/null differ diff --git a/ScreenSleep/obj/Release/Costura/8384113BFB9BFA6B10EE2BD62D53DC36C7EC506E.costura.costura.dll.compressed b/ScreenSleep/obj/Release/Costura/8384113BFB9BFA6B10EE2BD62D53DC36C7EC506E.costura.costura.dll.compressed deleted file mode 100644 index 037f3c0..0000000 Binary files a/ScreenSleep/obj/Release/Costura/8384113BFB9BFA6B10EE2BD62D53DC36C7EC506E.costura.costura.dll.compressed and /dev/null differ diff --git a/ScreenSleep/obj/Release/MainWindow.g.i.cs b/ScreenSleep/obj/Release/MainWindow.g.i.cs deleted file mode 100644 index b7a1751..0000000 --- a/ScreenSleep/obj/Release/MainWindow.g.i.cs +++ /dev/null @@ -1,122 +0,0 @@ -#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6E4E5F5345AF0BCC63D5B77C04DB588A5D967C6957FAAF25B1CA1A18B592CA6A" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using Hardcodet.Wpf.TaskbarNotification; -using ScreenSleep; -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace ScreenSleep { - - - /// - /// MainWindow - /// - public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { - - - #line 24 "..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal Hardcodet.Wpf.TaskbarNotification.TaskbarIcon MyNotifyIcon; - - #line default - #line hidden - - private bool _contentLoaded; - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public void InitializeComponent() { - if (_contentLoaded) { - return; - } - _contentLoaded = true; - System.Uri resourceLocater = new System.Uri("/ScreenSleep;component/mainwindow.xaml", System.UriKind.Relative); - - #line 1 "..\..\MainWindow.xaml" - System.Windows.Application.LoadComponent(this, resourceLocater); - - #line default - #line hidden - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] - void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { - switch (connectionId) - { - case 1: - - #line 13 "..\..\MainWindow.xaml" - ((ScreenSleep.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded); - - #line default - #line hidden - return; - case 2: - - #line 17 "..\..\MainWindow.xaml" - ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TurnOff_OnClick); - - #line default - #line hidden - return; - case 3: - - #line 18 "..\..\MainWindow.xaml" - ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Settings_OnClick); - - #line default - #line hidden - return; - case 4: - - #line 20 "..\..\MainWindow.xaml" - ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_OnClick); - - #line default - #line hidden - return; - case 5: - this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target)); - return; - } - this._contentLoaded = true; - } - } -} - diff --git a/ScreenSleep/obj/Release/ScreenSleep.csproj.FileListAbsolute.txt b/ScreenSleep/obj/Release/ScreenSleep.csproj.FileListAbsolute.txt deleted file mode 100644 index cdcf08d..0000000 --- a/ScreenSleep/obj/Release/ScreenSleep.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,20 +0,0 @@ -D:\Programming Stuff\ScreenSleep\ScreenSleep\bin\Release\ScreenSleep.exe.config -D:\Programming Stuff\ScreenSleep\ScreenSleep\bin\Release\ScreenSleep.exe -D:\Programming Stuff\ScreenSleep\ScreenSleep\bin\Release\ScreenSleep.pdb -D:\Programming Stuff\ScreenSleep\ScreenSleep\bin\Release\Hardcodet.Wpf.TaskbarNotification.xml -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.csprojAssemblyReference.cache -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\Settings.baml -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\MainWindow.g.cs -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\Settings.g.cs -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\App.g.cs -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep_MarkupCompile.cache -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep_MarkupCompile.lref -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\MainWindow.baml -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.g.resources -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.Properties.Resources.resources -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.csproj.GenerateResource.cache -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.csproj.CoreCompileInputs.cache -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.csproj.Fody.CopyLocal.cache -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.csproj.CopyComplete -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.exe -D:\Programming Stuff\ScreenSleep\ScreenSleep\obj\Release\ScreenSleep.pdb diff --git a/ScreenSleep/packages.config b/ScreenSleep/packages.config index 6a299ed..e0aa652 100644 --- a/ScreenSleep/packages.config +++ b/ScreenSleep/packages.config @@ -1,6 +1,37 @@  - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file