Skip to content

Commit a09a06e

Browse files
committed
More to come
0 parents  commit a09a06e

Some content is hidden

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

48 files changed

+572
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual C# Express 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nemocnice", "Nemocnice\Nemocnice.csproj", "{4EEA7549-52E4-4A7A-A0A9-D5253FEE652D}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|x86 = Debug|x86
9+
Release|x86 = Release|x86
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{4EEA7549-52E4-4A7A-A0A9-D5253FEE652D}.Debug|x86.ActiveCfg = Debug|x86
13+
{4EEA7549-52E4-4A7A-A0A9-D5253FEE652D}.Debug|x86.Build.0 = Debug|x86
14+
{4EEA7549-52E4-4A7A-A0A9-D5253FEE652D}.Release|x86.ActiveCfg = Release|x86
15+
{4EEA7549-52E4-4A7A-A0A9-D5253FEE652D}.Release|x86.Build.0 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{4EEA7549-52E4-4A7A-A0A9-D5253FEE652D}</ProjectGuid>
9+
<OutputType>Exe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>Nemocnice</RootNamespace>
12+
<AssemblyName>Nemocnice</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
15+
<FileAlignment>512</FileAlignment>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
18+
<PlatformTarget>x86</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
28+
<PlatformTarget>x86</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="System" />
38+
<Reference Include="System.Core" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="Program.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
50+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
51+
Other similar extension points exist, see Microsoft.Common.targets.
52+
<Target Name="BeforeBuild">
53+
</Target>
54+
<Target Name="AfterBuild">
55+
</Target>
56+
-->
57+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace Nemocnice
7+
{
8+
class Program
9+
{
10+
static void Main(string[] args)
11+
{
12+
try
13+
{
14+
double teplota = double.Parse(Question("Zadej teplotu:"));
15+
Console.ResetColor();
16+
if (!Console.NumberLock)
17+
{
18+
Console.WriteLine("Proč nepužíváš numerickou klávesnici? Ty ji snad nemáš??");
19+
}
20+
else
21+
{
22+
23+
if (teplota <= 34)
24+
{
25+
Console.BackgroundColor = ConsoleColor.Blue;
26+
Console.ForegroundColor = ConsoleColor.DarkBlue;
27+
Console.WriteLine("Pacient je asi v mrazáku");
28+
}
29+
else if (teplota < 37)
30+
{
31+
Console.WriteLine("Pacient je zdravý");
32+
}
33+
else if (teplota <= 38)
34+
{
35+
Console.WriteLine("Pacient má zvýšenou teplotu");
36+
}
37+
else if (teplota <= 42)
38+
{
39+
Console.BackgroundColor = ConsoleColor.Red;
40+
Console.ForegroundColor = ConsoleColor.Black;
41+
Console.WriteLine("Pacient je nemocný");
42+
}
43+
else
44+
{
45+
Console.BackgroundColor = ConsoleColor.Yellow;
46+
Console.ForegroundColor = ConsoleColor.Black;
47+
Console.Write("Pacient si dal teploměr do ");
48+
Console.BackgroundColor = ConsoleColor.Red;
49+
Console.ForegroundColor = ConsoleColor.Black;
50+
Console.Write("horkého čaje");
51+
Console.BackgroundColor = ConsoleColor.Yellow;
52+
Console.Write(" nebo v něm probíhá jaderná fůze.");
53+
54+
}
55+
}
56+
57+
}
58+
catch (FormatException)
59+
{
60+
Console.WriteLine("\n\nMěl jsi tam zadat číslo!\n\n");
61+
}
62+
Console.ReadLine();
63+
}
64+
static string Question(string question)
65+
{
66+
Console.Write(question + " ");
67+
Console.BackgroundColor = ConsoleColor.White;
68+
Console.ForegroundColor = ConsoleColor.Black;
69+
return Console.ReadLine();
70+
}
71+
}
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Nemocnice")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("Nemocnice")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("d1616646-2bcb-41c3-8747-1edac580d385")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
H:\C#\Hodnocené\Nemocnice\Nemocnice\bin\Debug\Nemocnice.exe
2+
H:\C#\Hodnocené\Nemocnice\Nemocnice\bin\Debug\Nemocnice.pdb
3+
H:\C#\Hodnocené\Nemocnice\Nemocnice\obj\x86\Debug\Nemocnice.exe
4+
H:\C#\Hodnocené\Nemocnice\Nemocnice\obj\x86\Debug\Nemocnice.pdb
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
H:\C#\Hodnocené\Nemocnice\Nemocnice\bin\Release\Nemocnice.exe
2+
H:\C#\Hodnocené\Nemocnice\Nemocnice\bin\Release\Nemocnice.pdb
3+
H:\C#\Hodnocené\Nemocnice\Nemocnice\obj\x86\Release\Nemocnice.exe
4+
H:\C#\Hodnocené\Nemocnice\Nemocnice\obj\x86\Release\Nemocnice.pdb
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual C# Express 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Obdélník", "Obdélník\Obdélník.csproj", "{BDBAEFF2-5ECA-4F73-9607-E738368B7232}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|x86 = Debug|x86
9+
Release|x86 = Release|x86
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{BDBAEFF2-5ECA-4F73-9607-E738368B7232}.Debug|x86.ActiveCfg = Debug|x86
13+
{BDBAEFF2-5ECA-4F73-9607-E738368B7232}.Debug|x86.Build.0 = Debug|x86
14+
{BDBAEFF2-5ECA-4F73-9607-E738368B7232}.Release|x86.ActiveCfg = Release|x86
15+
{BDBAEFF2-5ECA-4F73-9607-E738368B7232}.Release|x86.Build.0 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{BDBAEFF2-5ECA-4F73-9607-E738368B7232}</ProjectGuid>
9+
<OutputType>Exe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>Obdélník</RootNamespace>
12+
<AssemblyName>Obdélník</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
15+
<FileAlignment>512</FileAlignment>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
18+
<PlatformTarget>x86</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
28+
<PlatformTarget>x86</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="System" />
38+
<Reference Include="System.Core" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="Program.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
50+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
51+
Other similar extension points exist, see Microsoft.Common.targets.
52+
<Target Name="BeforeBuild">
53+
</Target>
54+
<Target Name="AfterBuild">
55+
</Target>
56+
-->
57+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace Obdélník
7+
{
8+
class Program
9+
{
10+
static void Main(string[] args)
11+
{
12+
while (true)
13+
{
14+
15+
16+
try
17+
{
18+
Console.WriteLine("\nZadáváš data do pravoúhlého rovnoběžníku");
19+
double a = double.Parse(Question("Zadej A:"));
20+
double b = double.Parse(Question("Zadej B:"));
21+
bool repeat = true;
22+
while (repeat)
23+
{
24+
char key = QuestionChar("Chceš znát Obvod nebo obSah (s/o):");
25+
key = Char.ToLower(key);
26+
Console.WriteLine(key);
27+
switch (key)
28+
{
29+
case 's':
30+
repeat = false;
31+
Console.WriteLine("Obsah tohoto pravoúhlého rovnoběžníku je: {0}", a * b);
32+
break;
33+
case 'o':
34+
repeat = false;
35+
Console.WriteLine("Obvod tohoto pravoúhlého rovnoběžníku je: {0}", 2 * (a + b));
36+
break;
37+
default:
38+
break;
39+
}
40+
}
41+
42+
}
43+
catch (FormatException)
44+
{
45+
Console.ForegroundColor = ConsoleColor.Black;
46+
Console.BackgroundColor = ConsoleColor.Red;
47+
Console.WriteLine("Měl jsi tam zadat číslo!");
48+
Console.ResetColor();
49+
}
50+
}
51+
}
52+
static string Question(string question)
53+
{
54+
Console.Write(question + " ");
55+
Console.ForegroundColor = ConsoleColor.Black;
56+
Console.BackgroundColor = ConsoleColor.White;
57+
question = Console.ReadLine();
58+
Console.ResetColor();
59+
return question;
60+
}
61+
static char QuestionChar(string question)
62+
{
63+
Console.Write(question + " ");
64+
Console.ForegroundColor = ConsoleColor.Black;
65+
Console.BackgroundColor = ConsoleColor.White;
66+
char key = Console.ReadKey().KeyChar;
67+
Console.ResetColor();
68+
return key;
69+
}
70+
}
71+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Obdélník")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("Obdélník")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("d1616646-2bcb-41c3-8747-1edac580d385")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)