Skip to content

Commit

Permalink
V1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedTsmu committed Oct 4, 2024
1 parent 38a8bf2 commit 9d7f3ca
Show file tree
Hide file tree
Showing 8 changed files with 982 additions and 2 deletions.
960 changes: 960 additions & 0 deletions 202020 Setup/202020 Setup.vdproj

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions 202020.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 17.11.35312.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "202020", "202020\202020.csproj", "{A971D2BE-B631-4EFB-BEB6-D8DF47750DFA}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "202020 Setup", "202020 Setup\202020 Setup.vdproj", "{FF452915-12B6-43E9-85C9-59D82B056867}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,8 @@ Global
{A971D2BE-B631-4EFB-BEB6-D8DF47750DFA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A971D2BE-B631-4EFB-BEB6-D8DF47750DFA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A971D2BE-B631-4EFB-BEB6-D8DF47750DFA}.Release|Any CPU.Build.0 = Release|Any CPU
{FF452915-12B6-43E9-85C9-59D82B056867}.Debug|Any CPU.ActiveCfg = Debug
{FF452915-12B6-43E9-85C9-59D82B056867}.Release|Any CPU.ActiveCfg = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
3 changes: 3 additions & 0 deletions 202020/202020.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,8 @@
<ItemGroup>
<None Include="Resources\PNG_eye.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\JPG_eye.jpg" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
2 changes: 1 addition & 1 deletion 202020/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private void SetupSystemTray()
trayIcon = new NotifyIcon();
trayIcon.Icon = Properties.Resources.eye_32px; // Use the embedded icon resource
trayIcon.Visible = true;
trayIcon.Text = "202020 - Running";
trayIcon.Text = "202020 - Screen System Eye Protection";
trayIcon.ContextMenu = new ContextMenu(new MenuItem[]
{
new MenuItem("Exit", OnExit) // Prevent user from exiting the app easily
Expand Down
10 changes: 10 additions & 0 deletions 202020/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions 202020/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@
<data name="eye_512px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\eye_512px.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="JPG_eye" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\JPG_eye.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PNG_eye" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\PNG_eye.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Binary file added 202020/Resources/JPG_eye.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion 202020/RestForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace _202020
public partial class RestForm : Form
{
private Timer restTimer;
private int restTime = 30; // 20 seconds rest
private int restTime = 30; // 30 seconds rest
private bool allowClose = false; // Control to allow closing only when timer ends

public RestForm()
Expand Down

0 comments on commit 9d7f3ca

Please sign in to comment.