Skip to content

Commit a6d87f0

Browse files
committed
- Now you need to enter the correct password 5-10 times to get the "Access Granted" instead of only once, if you input the wrong password - it doesn't count.
- Commented the code - Some optimisation fixes
1 parent a434a84 commit a6d87f0

File tree

51 files changed

+2149
-2148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2149
-2148
lines changed

Deadlock/Deadlock.sln

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27428.2011
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deadlock", "Deadlock\Deadlock.csproj", "{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Release|Any CPU.Build.0 = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {0D4199B0-3273-41C5-BA34-375FEEFDEFB1}
24-
EndGlobalSection
25-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27428.2011
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deadlock", "Deadlock\Deadlock.csproj", "{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {0D4199B0-3273-41C5-BA34-375FEEFDEFB1}
24+
EndGlobalSection
25+
EndGlobal

Deadlock/Deadlock/App.config

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
2-
<configuration>
3-
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5-
</startup>
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5+
</startup>
66
</configuration>

Deadlock/Deadlock/Deadlock.csproj

+156-156
Original file line numberDiff line numberDiff line change
@@ -1,157 +1,157 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}</ProjectGuid>
8-
<OutputType>WinExe</OutputType>
9-
<RootNamespace>Deadlock</RootNamespace>
10-
<AssemblyName>Deadlock</AssemblyName>
11-
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14-
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<PlatformTarget>AnyCPU</PlatformTarget>
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>bin\Debug\</OutputPath>
21-
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26-
<PlatformTarget>AnyCPU</PlatformTarget>
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants>TRACE</DefineConstants>
31-
<ErrorReport>prompt</ErrorReport>
32-
<WarningLevel>4</WarningLevel>
33-
</PropertyGroup>
34-
<PropertyGroup>
35-
<ApplicationIcon>deadlock.ico</ApplicationIcon>
36-
</PropertyGroup>
37-
<ItemGroup>
38-
<Reference Include="System" />
39-
<Reference Include="System.Core" />
40-
<Reference Include="System.Xml.Linq" />
41-
<Reference Include="System.Data.DataSetExtensions" />
42-
<Reference Include="Microsoft.CSharp" />
43-
<Reference Include="System.Data" />
44-
<Reference Include="System.Deployment" />
45-
<Reference Include="System.Drawing" />
46-
<Reference Include="System.Net.Http" />
47-
<Reference Include="System.Windows.Forms" />
48-
<Reference Include="System.Xml" />
49-
</ItemGroup>
50-
<ItemGroup>
51-
<Compile Include="FormDeadlock.cs">
52-
<SubType>Form</SubType>
53-
</Compile>
54-
<Compile Include="FormDeadlock.Designer.cs">
55-
<DependentUpon>FormDeadlock.cs</DependentUpon>
56-
</Compile>
57-
<Compile Include="Program.cs" />
58-
<Compile Include="Properties\AssemblyInfo.cs" />
59-
<Compile Include="RoundButton.cs">
60-
<SubType>UserControl</SubType>
61-
</Compile>
62-
<Compile Include="RoundButton.Designer.cs">
63-
<DependentUpon>RoundButton.cs</DependentUpon>
64-
</Compile>
65-
<EmbeddedResource Include="FormDeadlock.resx">
66-
<DependentUpon>FormDeadlock.cs</DependentUpon>
67-
</EmbeddedResource>
68-
<EmbeddedResource Include="Properties\Resources.resx">
69-
<Generator>ResXFileCodeGenerator</Generator>
70-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
71-
<SubType>Designer</SubType>
72-
</EmbeddedResource>
73-
<Compile Include="Properties\Resources.Designer.cs">
74-
<AutoGen>True</AutoGen>
75-
<DependentUpon>Resources.resx</DependentUpon>
76-
<DesignTime>True</DesignTime>
77-
</Compile>
78-
<EmbeddedResource Include="RoundButton.resx">
79-
<DependentUpon>RoundButton.cs</DependentUpon>
80-
</EmbeddedResource>
81-
<None Include="Properties\Settings.settings">
82-
<Generator>SettingsSingleFileGenerator</Generator>
83-
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
84-
</None>
85-
<Compile Include="Properties\Settings.Designer.cs">
86-
<AutoGen>True</AutoGen>
87-
<DependentUpon>Settings.settings</DependentUpon>
88-
<DesignTimeSharedInput>True</DesignTimeSharedInput>
89-
</Compile>
90-
</ItemGroup>
91-
<ItemGroup>
92-
<None Include="App.config" />
93-
</ItemGroup>
94-
<ItemGroup>
95-
<None Include="Resources\bg.png" />
96-
</ItemGroup>
97-
<ItemGroup>
98-
<None Include="Resources\button.png" />
99-
</ItemGroup>
100-
<ItemGroup>
101-
<None Include="Resources\button_click.png" />
102-
</ItemGroup>
103-
<ItemGroup>
104-
<None Include="Resources\button_hover.png" />
105-
</ItemGroup>
106-
<ItemGroup>
107-
<None Include="Resources\bg_inverted.png" />
108-
</ItemGroup>
109-
<ItemGroup>
110-
<None Include="Resources\bg_crosses.png" />
111-
</ItemGroup>
112-
<ItemGroup>
113-
<None Include="Resources\bg_fulltext.png" />
114-
</ItemGroup>
115-
<ItemGroup>
116-
<None Include="Resources\screen_enterpassword.png" />
117-
</ItemGroup>
118-
<ItemGroup>
119-
<Content Include="deadlock.ico" />
120-
<None Include="Resources\snd_0_wrong.wav" />
121-
<None Include="Resources\snd_startup.wav" />
122-
<None Include="Resources\snd_0_tryagain.wav" />
123-
<None Include="Resources\snd_7.wav" />
124-
<None Include="Resources\snd_3.wav" />
125-
<None Include="Resources\snd_accessgranted.wav" />
126-
<None Include="Resources\snd_8.wav" />
127-
<None Include="Resources\snd_6.wav" />
128-
<None Include="Resources\snd_5.wav" />
129-
<None Include="Resources\snd_4.wav" />
130-
<None Include="Resources\snd_2.wav" />
131-
<None Include="Resources\snd_1.wav" />
132-
<None Include="Resources\snd_0.wav" />
133-
<None Include="Resources\snd_9.wav" />
134-
<None Include="Resources\screen_accessgranted.png" />
135-
<Content Include="Resources\screen_password1.png" />
136-
<Content Include="Resources\screen_password10.png" />
137-
<Content Include="Resources\screen_password11.png" />
138-
<Content Include="Resources\screen_password12.png" />
139-
<Content Include="Resources\screen_password13.png" />
140-
<Content Include="Resources\screen_password14.png" />
141-
<Content Include="Resources\screen_password15.png" />
142-
<Content Include="Resources\screen_password16.png" />
143-
<Content Include="Resources\screen_password17.png" />
144-
<Content Include="Resources\screen_password2.png" />
145-
<Content Include="Resources\screen_password3.png" />
146-
<Content Include="Resources\screen_password4.png" />
147-
<Content Include="Resources\screen_password5.png" />
148-
<Content Include="Resources\screen_password6.png" />
149-
<Content Include="Resources\screen_password7.png" />
150-
<Content Include="Resources\screen_password8.png" />
151-
<Content Include="Resources\screen_password9.png" />
152-
<Content Include="Resources\screen_tryagain_no.png" />
153-
<Content Include="Resources\screen_tryagain_yes.png" />
154-
<Content Include="Resources\screen_wrongpassword.png" />
155-
</ItemGroup>
156-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{D5CACE0F-D0E0-48DB-A8FE-367599DD175F}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>Deadlock</RootNamespace>
10+
<AssemblyName>Deadlock</AssemblyName>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<PlatformTarget>AnyCPU</PlatformTarget>
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<PropertyGroup>
35+
<ApplicationIcon>deadlock.ico</ApplicationIcon>
36+
</PropertyGroup>
37+
<ItemGroup>
38+
<Reference Include="System" />
39+
<Reference Include="System.Core" />
40+
<Reference Include="System.Xml.Linq" />
41+
<Reference Include="System.Data.DataSetExtensions" />
42+
<Reference Include="Microsoft.CSharp" />
43+
<Reference Include="System.Data" />
44+
<Reference Include="System.Deployment" />
45+
<Reference Include="System.Drawing" />
46+
<Reference Include="System.Net.Http" />
47+
<Reference Include="System.Windows.Forms" />
48+
<Reference Include="System.Xml" />
49+
</ItemGroup>
50+
<ItemGroup>
51+
<Compile Include="FormDeadlock.cs">
52+
<SubType>Form</SubType>
53+
</Compile>
54+
<Compile Include="FormDeadlock.Designer.cs">
55+
<DependentUpon>FormDeadlock.cs</DependentUpon>
56+
</Compile>
57+
<Compile Include="Program.cs" />
58+
<Compile Include="Properties\AssemblyInfo.cs" />
59+
<Compile Include="RoundButton.cs">
60+
<SubType>UserControl</SubType>
61+
</Compile>
62+
<Compile Include="RoundButton.Designer.cs">
63+
<DependentUpon>RoundButton.cs</DependentUpon>
64+
</Compile>
65+
<EmbeddedResource Include="FormDeadlock.resx">
66+
<DependentUpon>FormDeadlock.cs</DependentUpon>
67+
</EmbeddedResource>
68+
<EmbeddedResource Include="Properties\Resources.resx">
69+
<Generator>ResXFileCodeGenerator</Generator>
70+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
71+
<SubType>Designer</SubType>
72+
</EmbeddedResource>
73+
<Compile Include="Properties\Resources.Designer.cs">
74+
<AutoGen>True</AutoGen>
75+
<DependentUpon>Resources.resx</DependentUpon>
76+
<DesignTime>True</DesignTime>
77+
</Compile>
78+
<EmbeddedResource Include="RoundButton.resx">
79+
<DependentUpon>RoundButton.cs</DependentUpon>
80+
</EmbeddedResource>
81+
<None Include="Properties\Settings.settings">
82+
<Generator>SettingsSingleFileGenerator</Generator>
83+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
84+
</None>
85+
<Compile Include="Properties\Settings.Designer.cs">
86+
<AutoGen>True</AutoGen>
87+
<DependentUpon>Settings.settings</DependentUpon>
88+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
89+
</Compile>
90+
</ItemGroup>
91+
<ItemGroup>
92+
<None Include="App.config" />
93+
</ItemGroup>
94+
<ItemGroup>
95+
<None Include="Resources\bg.png" />
96+
</ItemGroup>
97+
<ItemGroup>
98+
<None Include="Resources\button.png" />
99+
</ItemGroup>
100+
<ItemGroup>
101+
<None Include="Resources\button_click.png" />
102+
</ItemGroup>
103+
<ItemGroup>
104+
<None Include="Resources\button_hover.png" />
105+
</ItemGroup>
106+
<ItemGroup>
107+
<None Include="Resources\bg_inverted.png" />
108+
</ItemGroup>
109+
<ItemGroup>
110+
<None Include="Resources\bg_crosses.png" />
111+
</ItemGroup>
112+
<ItemGroup>
113+
<None Include="Resources\bg_fulltext.png" />
114+
</ItemGroup>
115+
<ItemGroup>
116+
<None Include="Resources\screen_enterpassword.png" />
117+
</ItemGroup>
118+
<ItemGroup>
119+
<Content Include="deadlock.ico" />
120+
<None Include="Resources\snd_0_wrong.wav" />
121+
<None Include="Resources\snd_startup.wav" />
122+
<None Include="Resources\snd_0_tryagain.wav" />
123+
<None Include="Resources\snd_7.wav" />
124+
<None Include="Resources\snd_3.wav" />
125+
<None Include="Resources\snd_accessgranted.wav" />
126+
<None Include="Resources\snd_8.wav" />
127+
<None Include="Resources\snd_6.wav" />
128+
<None Include="Resources\snd_5.wav" />
129+
<None Include="Resources\snd_4.wav" />
130+
<None Include="Resources\snd_2.wav" />
131+
<None Include="Resources\snd_1.wav" />
132+
<None Include="Resources\snd_0.wav" />
133+
<None Include="Resources\snd_9.wav" />
134+
<None Include="Resources\screen_accessgranted.png" />
135+
<Content Include="Resources\screen_password1.png" />
136+
<Content Include="Resources\screen_password10.png" />
137+
<Content Include="Resources\screen_password11.png" />
138+
<Content Include="Resources\screen_password12.png" />
139+
<Content Include="Resources\screen_password13.png" />
140+
<Content Include="Resources\screen_password14.png" />
141+
<Content Include="Resources\screen_password15.png" />
142+
<Content Include="Resources\screen_password16.png" />
143+
<Content Include="Resources\screen_password17.png" />
144+
<Content Include="Resources\screen_password2.png" />
145+
<Content Include="Resources\screen_password3.png" />
146+
<Content Include="Resources\screen_password4.png" />
147+
<Content Include="Resources\screen_password5.png" />
148+
<Content Include="Resources\screen_password6.png" />
149+
<Content Include="Resources\screen_password7.png" />
150+
<Content Include="Resources\screen_password8.png" />
151+
<Content Include="Resources\screen_password9.png" />
152+
<Content Include="Resources\screen_tryagain_no.png" />
153+
<Content Include="Resources\screen_tryagain_yes.png" />
154+
<Content Include="Resources\screen_wrongpassword.png" />
155+
</ItemGroup>
156+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
157157
</Project>

0 commit comments

Comments
 (0)