Skip to content

Commit f4026ed

Browse files
committed
I made a sample application.
1 parent 8d40066 commit f4026ed

File tree

11 files changed

+740
-10
lines changed

11 files changed

+740
-10
lines changed

CSharp__Fundamentals.sln

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ForeacH_Examples", "ForeacH
1515
EndProject
1616
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Custom_Functions", "Custom_Functions\Custom_Functions.csproj", "{1EB4DCC6-A4EF-4EB3-93A1-ED51A9306FB3}"
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Void_Methods", "Void_Methods\Void_Methods.csproj", "{40A6F7D3-A1BB-47FA-9BBA-D6B57F1E6F99}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VOID_METHODS1", "VOID_METHODS1\VOID_METHODS1.csproj", "{96CBE1D4-11D9-45B1-AE36-00E651FE080E}"
1919
EndProject
20-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Try_CatcH", "Try_CatcH\Try_CatcH.csproj", "{25CEBC03-9090-4B55-9844-67A57E9E3CA9}"
20+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Try_Catch1", "Try_Catch1\Try_Catch1.csproj", "{98B646CC-522D-40E0-8E2A-464E1A0260F5}"
2121
EndProject
2222
Global
2323
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -49,14 +49,14 @@ Global
4949
{1EB4DCC6-A4EF-4EB3-93A1-ED51A9306FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
5050
{1EB4DCC6-A4EF-4EB3-93A1-ED51A9306FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
5151
{1EB4DCC6-A4EF-4EB3-93A1-ED51A9306FB3}.Release|Any CPU.Build.0 = Release|Any CPU
52-
{40A6F7D3-A1BB-47FA-9BBA-D6B57F1E6F99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53-
{40A6F7D3-A1BB-47FA-9BBA-D6B57F1E6F99}.Debug|Any CPU.Build.0 = Debug|Any CPU
54-
{40A6F7D3-A1BB-47FA-9BBA-D6B57F1E6F99}.Release|Any CPU.ActiveCfg = Release|Any CPU
55-
{40A6F7D3-A1BB-47FA-9BBA-D6B57F1E6F99}.Release|Any CPU.Build.0 = Release|Any CPU
56-
{25CEBC03-9090-4B55-9844-67A57E9E3CA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57-
{25CEBC03-9090-4B55-9844-67A57E9E3CA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
58-
{25CEBC03-9090-4B55-9844-67A57E9E3CA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
59-
{25CEBC03-9090-4B55-9844-67A57E9E3CA9}.Release|Any CPU.Build.0 = Release|Any CPU
52+
{96CBE1D4-11D9-45B1-AE36-00E651FE080E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53+
{96CBE1D4-11D9-45B1-AE36-00E651FE080E}.Debug|Any CPU.Build.0 = Debug|Any CPU
54+
{96CBE1D4-11D9-45B1-AE36-00E651FE080E}.Release|Any CPU.ActiveCfg = Release|Any CPU
55+
{96CBE1D4-11D9-45B1-AE36-00E651FE080E}.Release|Any CPU.Build.0 = Release|Any CPU
56+
{98B646CC-522D-40E0-8E2A-464E1A0260F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57+
{98B646CC-522D-40E0-8E2A-464E1A0260F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
58+
{98B646CC-522D-40E0-8E2A-464E1A0260F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{98B646CC-522D-40E0-8E2A-464E1A0260F5}.Release|Any CPU.Build.0 = Release|Any CPU
6060
EndGlobalSection
6161
GlobalSection(SolutionProperties) = preSolution
6262
HideSolutionNode = FALSE

Try_Catch1/Form1.Designer.cs

Lines changed: 134 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Try_Catch1/Form1.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
namespace Try_Catch1
2+
{
3+
public partial class Form1 : Form
4+
{
5+
public Form1()
6+
{
7+
InitializeComponent();
8+
}
9+
10+
private void btnFcc_Click(object sender, EventArgs e)
11+
{
12+
try
13+
{
14+
float tafpd = float.Parse(textTaopf.Text);
15+
float tl = float.Parse(textTl.Text);
16+
17+
18+
float penny_account = tl / tafpd;
19+
MessageBox.Show($" 1=km PRÝCE : {Math.Round(penny_account)} TL ");
20+
}
21+
catch (Exception)
22+
{
23+
MessageBox.Show("NULL VALUE CANNOT BE ENTERED !!");
24+
25+
}
26+
}
27+
}
28+
}

Try_Catch1/Form1.resx

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<root>
2+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
3+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
4+
<xsd:element name="root" msdata:IsDataSet="true">
5+
<xsd:complexType>
6+
<xsd:choice maxOccurs="unbounded">
7+
<xsd:element name="metadata">
8+
<xsd:complexType>
9+
<xsd:sequence>
10+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
11+
</xsd:sequence>
12+
<xsd:attribute name="name" use="required" type="xsd:string" />
13+
<xsd:attribute name="type" type="xsd:string" />
14+
<xsd:attribute name="mimetype" type="xsd:string" />
15+
<xsd:attribute ref="xml:space" />
16+
</xsd:complexType>
17+
</xsd:element>
18+
<xsd:element name="assembly">
19+
<xsd:complexType>
20+
<xsd:attribute name="alias" type="xsd:string" />
21+
<xsd:attribute name="name" type="xsd:string" />
22+
</xsd:complexType>
23+
</xsd:element>
24+
<xsd:element name="data">
25+
<xsd:complexType>
26+
<xsd:sequence>
27+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
28+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
29+
</xsd:sequence>
30+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
31+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
32+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
33+
<xsd:attribute ref="xml:space" />
34+
</xsd:complexType>
35+
</xsd:element>
36+
<xsd:element name="resheader">
37+
<xsd:complexType>
38+
<xsd:sequence>
39+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
40+
</xsd:sequence>
41+
<xsd:attribute name="name" type="xsd:string" use="required" />
42+
</xsd:complexType>
43+
</xsd:element>
44+
</xsd:choice>
45+
</xsd:complexType>
46+
</xsd:element>
47+
</xsd:schema>
48+
<resheader name="resmimetype">
49+
<value>text/microsoft-resx</value>
50+
</resheader>
51+
<resheader name="version">
52+
<value>2.0</value>
53+
</resheader>
54+
<resheader name="reader">
55+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
56+
</resheader>
57+
<resheader name="writer">
58+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
59+
</resheader>
60+
</root>

Try_Catch1/Program.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace Try_Catch1
2+
{
3+
internal static class Program
4+
{
5+
/// <summary>
6+
/// The main entry point for the application.
7+
/// </summary>
8+
[STAThread]
9+
static void Main()
10+
{
11+
// To customize application configuration such as set high DPI settings or default font,
12+
// see https://aka.ms/applicationconfiguration.
13+
ApplicationConfiguration.Initialize();
14+
Application.Run(new Form1());
15+
}
16+
}
17+
}

Try_Catch1/Try_Catch1.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net6.0-windows</TargetFramework>
6+
<Nullable>enable</Nullable>
7+
<UseWindowsForms>true</UseWindowsForms>
8+
<ImplicitUsings>enable</ImplicitUsings>
9+
</PropertyGroup>
10+
11+
</Project>

0 commit comments

Comments
 (0)