From ddd9e17b669692d15776110bfb8fd67bc058921d Mon Sep 17 00:00:00 2001 From: Shreyas Kulkarni <30172640+shreyask21@users.noreply.github.com> Date: Tue, 23 Jul 2024 02:47:09 +0530 Subject: [PATCH] Initial Release --- App.config | 6 ++ App.xaml | 9 ++ App.xaml.cs | 17 ++++ Keep Asleep.csproj | 159 +++++++++++++++++++++++++++++++ Keep Asleep.sln | 25 +++++ MainWindow.xaml | 53 +++++++++++ MainWindow.xaml.cs | 146 ++++++++++++++++++++++++++++ Properties/AssemblyInfo.cs | 55 +++++++++++ Properties/Resources.Designer.cs | 73 ++++++++++++++ Properties/Resources.resx | 124 ++++++++++++++++++++++++ Properties/Settings.Designer.cs | 30 ++++++ Properties/Settings.settings | 7 ++ README.md | 16 +++- Resources/Icon1.ico | Bin 0 -> 45451 bytes icons/tray.ico | Bin 0 -> 438668 bytes packages.config | 4 + tray.ico | Bin 0 -> 438668 bytes 17 files changed, 722 insertions(+), 2 deletions(-) create mode 100644 App.config create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 Keep Asleep.csproj create mode 100644 Keep Asleep.sln create mode 100644 MainWindow.xaml create mode 100644 MainWindow.xaml.cs create mode 100644 Properties/AssemblyInfo.cs create mode 100644 Properties/Resources.Designer.cs create mode 100644 Properties/Resources.resx create mode 100644 Properties/Settings.Designer.cs create mode 100644 Properties/Settings.settings create mode 100644 Resources/Icon1.ico create mode 100644 icons/tray.ico create mode 100644 packages.config create mode 100644 tray.ico diff --git a/App.config b/App.config new file mode 100644 index 0000000..016d28f --- /dev/null +++ b/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..7a25568 --- /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..c6383f9 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace Keep_Asleep +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/Keep Asleep.csproj b/Keep Asleep.csproj new file mode 100644 index 0000000..6a66192 --- /dev/null +++ b/Keep Asleep.csproj @@ -0,0 +1,159 @@ + + + + + Debug + AnyCPU + {1F5DAEB4-234A-48A4-9587-8300E7ACF030} + WinExe + Keep_Asleep + Keep Asleep + v4.7 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + true + false + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 1 + 1.0.0.%2a + false + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + EC358E7E7722D6675E9586C86FE071E0196B2F30 + + + Keep Asleep_TemporaryKey.pfx + + + true + + + true + + + tray.ico + + + + packages\Hardcodet.NotifyIcon.Wpf.1.1.0\lib\net462\Hardcodet.NotifyIcon.Wpf.dll + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + + + + + False + Microsoft .NET Framework 4.7 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + + + + + taskkill /f /fi "imagename eq $(TargetFileName)" + + \ No newline at end of file diff --git a/Keep Asleep.sln b/Keep Asleep.sln new file mode 100644 index 0000000..2e06c89 --- /dev/null +++ b/Keep Asleep.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.35027.167 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Keep Asleep", "Keep Asleep.csproj", "{1F5DAEB4-234A-48A4-9587-8300E7ACF030}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1F5DAEB4-234A-48A4-9587-8300E7ACF030}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F5DAEB4-234A-48A4-9587-8300E7ACF030}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F5DAEB4-234A-48A4-9587-8300E7ACF030}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F5DAEB4-234A-48A4-9587-8300E7ACF030}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CCBA7330-2A73-406A-A646-9820066ABC78} + EndGlobalSection +EndGlobal diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..4b197ee --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,53 @@ + + + + + + + + + + +