diff --git a/20240304/Haromszog/.vs/Haromszog/v16/.suo b/20240304/Haromszog/.vs/Haromszog/v16/.suo new file mode 100644 index 0000000..451cc3d Binary files /dev/null and b/20240304/Haromszog/.vs/Haromszog/v16/.suo differ diff --git a/20240304/Haromszog/App.config b/20240304/Haromszog/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240304/Haromszog/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240304/Haromszog/Form1.Designer.cs b/20240304/Haromszog/Form1.Designer.cs new file mode 100644 index 0000000..bdbdb25 --- /dev/null +++ b/20240304/Haromszog/Form1.Designer.cs @@ -0,0 +1,153 @@ + +namespace Haromszog +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 71); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(38, 13); + this.label1.TabIndex = 0; + this.label1.Text = "a oldal"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 116); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(38, 13); + this.label2.TabIndex = 1; + this.label2.Text = "b oldal"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(12, 172); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(38, 13); + this.label3.TabIndex = 2; + this.label3.Text = "c oldal"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(104, 9); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(145, 13); + this.label4.TabIndex = 3; + this.label4.Text = "Háromszög szerkeszthetőség"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(147, 280); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(54, 13); + this.label5.TabIndex = 4; + this.label5.Text = "Eredmény"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(137, 217); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 5; + this.button1.Text = "Eldönt"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(126, 64); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(100, 20); + this.textBox1.TabIndex = 6; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(126, 113); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(100, 20); + this.textBox2.TabIndex = 7; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(126, 169); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(100, 20); + this.textBox3.TabIndex = 8; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(365, 441); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.button1); + this.Controls.Add(this.label5); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox3; + } +} + diff --git a/20240304/Haromszog/Form1.cs b/20240304/Haromszog/Form1.cs new file mode 100644 index 0000000..93e5956 --- /dev/null +++ b/20240304/Haromszog/Form1.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Haromszog +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private bool Szerkesztheto(int a, int b, int c) + { + if (a + b > c && a + c > b && b + c > a) + { + return true; + } + + return false; + } + private void button1_Click(object sender, EventArgs e) + { + int a = Convert.ToInt32(textBox1.Text); + int b = Convert.ToInt32(textBox2.Text); + int c = Convert.ToInt32(textBox3.Text); + if (Szerkesztheto(a,b,c)) + { + label5.Text = "Szerkeszthető"; + } else + { + label5.Text = "Nem szerkeszthető"; + } + + + } + + } +} diff --git a/20240304/Haromszog/Form1.resx b/20240304/Haromszog/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240304/Haromszog/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240304/Haromszog/Haromszog.csproj b/20240304/Haromszog/Haromszog.csproj new file mode 100644 index 0000000..2ba7bc4 --- /dev/null +++ b/20240304/Haromszog/Haromszog.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {72DEEE75-0E4C-4479-B214-B63E69BDE97D} + WinExe + Haromszog + Haromszog + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/20240304/Haromszog/Haromszog.sln b/20240304/Haromszog/Haromszog.sln new file mode 100644 index 0000000..8da661c --- /dev/null +++ b/20240304/Haromszog/Haromszog.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Haromszog", "Haromszog.csproj", "{72DEEE75-0E4C-4479-B214-B63E69BDE97D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {72DEEE75-0E4C-4479-B214-B63E69BDE97D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {72DEEE75-0E4C-4479-B214-B63E69BDE97D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {72DEEE75-0E4C-4479-B214-B63E69BDE97D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {72DEEE75-0E4C-4479-B214-B63E69BDE97D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BB2433C8-61CD-416C-94F6-22887E968ABB} + EndGlobalSection +EndGlobal diff --git a/20240304/Haromszog/Program.cs b/20240304/Haromszog/Program.cs new file mode 100644 index 0000000..e94c68c --- /dev/null +++ b/20240304/Haromszog/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Haromszog +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/20240304/Haromszog/Properties/AssemblyInfo.cs b/20240304/Haromszog/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9ff389d --- /dev/null +++ b/20240304/Haromszog/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Haromszog")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Haromszog")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("72deee75-0e4c-4479-b214-b63e69bde97d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20240304/Haromszog/Properties/Resources.Designer.cs b/20240304/Haromszog/Properties/Resources.Designer.cs new file mode 100644 index 0000000..789824c --- /dev/null +++ b/20240304/Haromszog/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace Haromszog.Properties +{ + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Haromszog.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/20240304/Haromszog/Properties/Resources.resx b/20240304/Haromszog/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240304/Haromszog/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240304/Haromszog/Properties/Settings.Designer.cs b/20240304/Haromszog/Properties/Settings.Designer.cs new file mode 100644 index 0000000..3fbcca0 --- /dev/null +++ b/20240304/Haromszog/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace Haromszog.Properties +{ + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/20240304/Haromszog/Properties/Settings.settings b/20240304/Haromszog/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240304/Haromszog/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240304/Haromszog/bin/Debug/Haromszog.exe b/20240304/Haromszog/bin/Debug/Haromszog.exe new file mode 100644 index 0000000..284ec5a Binary files /dev/null and b/20240304/Haromszog/bin/Debug/Haromszog.exe differ diff --git a/20240304/Haromszog/bin/Debug/Haromszog.exe.config b/20240304/Haromszog/bin/Debug/Haromszog.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240304/Haromszog/bin/Debug/Haromszog.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240304/Haromszog/bin/Debug/Haromszog.pdb b/20240304/Haromszog/bin/Debug/Haromszog.pdb new file mode 100644 index 0000000..a604794 Binary files /dev/null and b/20240304/Haromszog/bin/Debug/Haromszog.pdb differ diff --git a/20240304/Haromszog/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240304/Haromszog/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240304/Haromszog/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..a6920de Binary files /dev/null and b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..a7cb33e Binary files /dev/null and b/20240304/Haromszog/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.Form1.resources b/20240304/Haromszog/obj/Debug/Haromszog.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240304/Haromszog/obj/Debug/Haromszog.Form1.resources differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.Properties.Resources.resources b/20240304/Haromszog/obj/Debug/Haromszog.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240304/Haromszog/obj/Debug/Haromszog.Properties.Resources.resources differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache b/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20240304/Haromszog/obj/Debug/Haromszog.csproj.AssemblyReference.cache differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.csproj.CoreCompileInputs.cache b/20240304/Haromszog/obj/Debug/Haromszog.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4a5524a --- /dev/null +++ b/20240304/Haromszog/obj/Debug/Haromszog.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +8069502011d0681850e57a53d5a1673222f430a6 diff --git a/20240304/Haromszog/obj/Debug/Haromszog.csproj.FileListAbsolute.txt b/20240304/Haromszog/obj/Debug/Haromszog.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a1ef130 --- /dev/null +++ b/20240304/Haromszog/obj/Debug/Haromszog.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.Form1.resources +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\bin\Debug\Haromszog.exe.config +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\bin\Debug\Haromszog.exe +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\bin\Debug\Haromszog.pdb +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.exe +C:\Users\szabomarton\Desktop\C#\20240304\Haromszog\obj\Debug\Haromszog.pdb diff --git a/20240304/Haromszog/obj/Debug/Haromszog.csproj.GenerateResource.cache b/20240304/Haromszog/obj/Debug/Haromszog.csproj.GenerateResource.cache new file mode 100644 index 0000000..dac26d7 Binary files /dev/null and b/20240304/Haromszog/obj/Debug/Haromszog.csproj.GenerateResource.cache differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.exe b/20240304/Haromszog/obj/Debug/Haromszog.exe new file mode 100644 index 0000000..284ec5a Binary files /dev/null and b/20240304/Haromszog/obj/Debug/Haromszog.exe differ diff --git a/20240304/Haromszog/obj/Debug/Haromszog.pdb b/20240304/Haromszog/obj/Debug/Haromszog.pdb new file mode 100644 index 0000000..a604794 Binary files /dev/null and b/20240304/Haromszog/obj/Debug/Haromszog.pdb differ diff --git a/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo b/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo new file mode 100644 index 0000000..83e12af Binary files /dev/null and b/20240304/SzokoevEldonto/.vs/SzokoevEldonto/v16/.suo differ diff --git a/20240304/SzokoevEldonto/App.config b/20240304/SzokoevEldonto/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240304/SzokoevEldonto/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240304/SzokoevEldonto/Form1.Designer.cs b/20240304/SzokoevEldonto/Form1.Designer.cs new file mode 100644 index 0000000..35e546e --- /dev/null +++ b/20240304/SzokoevEldonto/Form1.Designer.cs @@ -0,0 +1,96 @@ + +namespace SzokoevEldonto +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(89, 58); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(209, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Add meg az évet amit meg akarsz vizsgálni"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(178, 197); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(0, 13); + this.label2.TabIndex = 1; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(145, 100); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(100, 20); + this.textBox1.TabIndex = 2; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(159, 140); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 3; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(410, 275); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Button button1; + } +} + diff --git a/20240304/SzokoevEldonto/Form1.cs b/20240304/SzokoevEldonto/Form1.cs new file mode 100644 index 0000000..f65c7a1 --- /dev/null +++ b/20240304/SzokoevEldonto/Form1.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SzokoevEldonto +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private bool Szokoev(int ev) + { + if (ev % 400 != 0 && (ev % 4 == 0 || ev % 100 == 0)) + { + return true; + } + + return false; + } + private void button1_Click(object sender, EventArgs e) + { + int ev = Convert.ToInt32(textBox1.Text); + if (Szokoev(ev)) + { + label2.Text = "Szökőév"; + } + else + { + label2.Text = "Nem szökőév"; + } + } + } +} diff --git a/20240304/SzokoevEldonto/Form1.resx b/20240304/SzokoevEldonto/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240304/SzokoevEldonto/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240304/SzokoevEldonto/Program.cs b/20240304/SzokoevEldonto/Program.cs new file mode 100644 index 0000000..6ae83af --- /dev/null +++ b/20240304/SzokoevEldonto/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SzokoevEldonto +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/20240304/SzokoevEldonto/Properties/AssemblyInfo.cs b/20240304/SzokoevEldonto/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..616ac02 --- /dev/null +++ b/20240304/SzokoevEldonto/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SzokoevEldonto")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SzokoevEldonto")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3b0392d4-305c-4a5e-b4d8-aeea38cb5011")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20240304/SzokoevEldonto/Properties/Resources.Designer.cs b/20240304/SzokoevEldonto/Properties/Resources.Designer.cs new file mode 100644 index 0000000..f08efd1 --- /dev/null +++ b/20240304/SzokoevEldonto/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace SzokoevEldonto.Properties +{ + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SzokoevEldonto.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/20240304/SzokoevEldonto/Properties/Resources.resx b/20240304/SzokoevEldonto/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240304/SzokoevEldonto/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240304/SzokoevEldonto/Properties/Settings.Designer.cs b/20240304/SzokoevEldonto/Properties/Settings.Designer.cs new file mode 100644 index 0000000..428ad7b --- /dev/null +++ b/20240304/SzokoevEldonto/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace SzokoevEldonto.Properties +{ + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/20240304/SzokoevEldonto/Properties/Settings.settings b/20240304/SzokoevEldonto/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240304/SzokoevEldonto/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240304/SzokoevEldonto/SzokoevEldonto.csproj b/20240304/SzokoevEldonto/SzokoevEldonto.csproj new file mode 100644 index 0000000..a4585f3 --- /dev/null +++ b/20240304/SzokoevEldonto/SzokoevEldonto.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {3B0392D4-305C-4A5E-B4D8-AEEA38CB5011} + WinExe + SzokoevEldonto + SzokoevEldonto + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/20240304/SzokoevEldonto/SzokoevEldonto.sln b/20240304/SzokoevEldonto/SzokoevEldonto.sln new file mode 100644 index 0000000..ce1992d --- /dev/null +++ b/20240304/SzokoevEldonto/SzokoevEldonto.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SzokoevEldonto", "SzokoevEldonto.csproj", "{3B0392D4-305C-4A5E-B4D8-AEEA38CB5011}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3B0392D4-305C-4A5E-B4D8-AEEA38CB5011}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3B0392D4-305C-4A5E-B4D8-AEEA38CB5011}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3B0392D4-305C-4A5E-B4D8-AEEA38CB5011}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3B0392D4-305C-4A5E-B4D8-AEEA38CB5011}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C1483D90-CBB0-41DA-8633-73E349F04260} + EndGlobalSection +EndGlobal diff --git a/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.exe b/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.exe new file mode 100644 index 0000000..18ce75b Binary files /dev/null and b/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.exe differ diff --git a/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.exe.config b/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.pdb b/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.pdb new file mode 100644 index 0000000..34e7753 Binary files /dev/null and b/20240304/SzokoevEldonto/bin/Debug/SzokoevEldonto.pdb differ diff --git a/20240304/SzokoevEldonto/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240304/SzokoevEldonto/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240304/SzokoevEldonto/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c0647a3 Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.Form1.resources b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.Form1.resources differ diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.Properties.Resources.resources b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.Properties.Resources.resources differ diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.CoreCompileInputs.cache b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4a5524a --- /dev/null +++ b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +8069502011d0681850e57a53d5a1673222f430a6 diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.FileListAbsolute.txt b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3d67161 --- /dev/null +++ b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.FileListAbsolute.txt @@ -0,0 +1,9 @@ +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\bin\Debug\SzokoevEldonto.exe.config +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\bin\Debug\SzokoevEldonto.exe +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\bin\Debug\SzokoevEldonto.pdb +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\obj\Debug\SzokoevEldonto.Form1.resources +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\obj\Debug\SzokoevEldonto.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\obj\Debug\SzokoevEldonto.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\obj\Debug\SzokoevEldonto.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\obj\Debug\SzokoevEldonto.exe +C:\Users\szabomarton\Desktop\C#\20240304\SzokoevEldonto\obj\Debug\SzokoevEldonto.pdb diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.GenerateResource.cache b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.GenerateResource.cache new file mode 100644 index 0000000..b38c62b Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.csproj.GenerateResource.cache differ diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.exe b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.exe new file mode 100644 index 0000000..18ce75b Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.exe differ diff --git a/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.pdb b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.pdb new file mode 100644 index 0000000..34e7753 Binary files /dev/null and b/20240304/SzokoevEldonto/obj/Debug/SzokoevEldonto.pdb differ diff --git a/20240304/Szonda/.vs/Szonda/v16/.suo b/20240304/Szonda/.vs/Szonda/v16/.suo new file mode 100644 index 0000000..8dbdf2f Binary files /dev/null and b/20240304/Szonda/.vs/Szonda/v16/.suo differ diff --git a/20240304/Szonda/App.config b/20240304/Szonda/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240304/Szonda/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240304/Szonda/Form1.Designer.cs b/20240304/Szonda/Form1.Designer.cs new file mode 100644 index 0000000..658eb17 --- /dev/null +++ b/20240304/Szonda/Form1.Designer.cs @@ -0,0 +1,108 @@ + +namespace Szonda +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(184, 27); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(79, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Alkohol szonda"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 118); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(129, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Ezrelékes véralkoholszint:"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(342, 118); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(0, 13); + this.label3.TabIndex = 2; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(174, 118); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(100, 20); + this.textBox1.TabIndex = 3; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(187, 176); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 4; + this.button1.Text = "Eredmény"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Button button1; + } +} + diff --git a/20240304/Szonda/Form1.cs b/20240304/Szonda/Form1.cs new file mode 100644 index 0000000..29ffab2 --- /dev/null +++ b/20240304/Szonda/Form1.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Szonda +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private string Kiir(double val) + { + if (val > 0.5 && val <= 1.5) + { + return "Ittaság"; + } else if (val > 1.5 && val <= 2.5) + { + return "Részegség"; + } else if (val > 2.5 && val <= 4.0) + { + return "Alkoholmérgezés"; + } else if (val <= 0.5) + { + return "Józanság"; + } else + { + return "Halott"; + } + + } + private void button1_Click(object sender, EventArgs e) + { + double val = Convert.ToDouble(textBox1.Text); + label3.Text = Kiir(val); + } + } +} diff --git a/20240304/Szonda/Form1.resx b/20240304/Szonda/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240304/Szonda/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240304/Szonda/Program.cs b/20240304/Szonda/Program.cs new file mode 100644 index 0000000..e98dd6c --- /dev/null +++ b/20240304/Szonda/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Szonda +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/20240304/Szonda/Properties/AssemblyInfo.cs b/20240304/Szonda/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2167707 --- /dev/null +++ b/20240304/Szonda/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Szonda")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Szonda")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c3218628-f3cf-4a1b-80b3-13e92fc44657")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20240304/Szonda/Properties/Resources.Designer.cs b/20240304/Szonda/Properties/Resources.Designer.cs new file mode 100644 index 0000000..a139db9 --- /dev/null +++ b/20240304/Szonda/Properties/Resources.Designer.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace Szonda.Properties +{ + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Szonda.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/20240304/Szonda/Properties/Resources.resx b/20240304/Szonda/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240304/Szonda/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/20240304/Szonda/Properties/Settings.Designer.cs b/20240304/Szonda/Properties/Settings.Designer.cs new file mode 100644 index 0000000..ac90ab9 --- /dev/null +++ b/20240304/Szonda/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace Szonda.Properties +{ + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/20240304/Szonda/Properties/Settings.settings b/20240304/Szonda/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240304/Szonda/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240304/Szonda/Szonda.csproj b/20240304/Szonda/Szonda.csproj new file mode 100644 index 0000000..ad076a4 --- /dev/null +++ b/20240304/Szonda/Szonda.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {C3218628-F3CF-4A1B-80B3-13E92FC44657} + WinExe + Szonda + Szonda + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/20240304/Szonda/Szonda.sln b/20240304/Szonda/Szonda.sln new file mode 100644 index 0000000..b9a38ae --- /dev/null +++ b/20240304/Szonda/Szonda.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33529.622 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Szonda", "Szonda.csproj", "{C3218628-F3CF-4A1B-80B3-13E92FC44657}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C3218628-F3CF-4A1B-80B3-13E92FC44657}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C3218628-F3CF-4A1B-80B3-13E92FC44657}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C3218628-F3CF-4A1B-80B3-13E92FC44657}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C3218628-F3CF-4A1B-80B3-13E92FC44657}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {03D71BB6-F456-4A3A-924A-AAA69498739E} + EndGlobalSection +EndGlobal diff --git a/20240304/Szonda/bin/Debug/Szonda.exe b/20240304/Szonda/bin/Debug/Szonda.exe new file mode 100644 index 0000000..3f35d73 Binary files /dev/null and b/20240304/Szonda/bin/Debug/Szonda.exe differ diff --git a/20240304/Szonda/bin/Debug/Szonda.exe.config b/20240304/Szonda/bin/Debug/Szonda.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240304/Szonda/bin/Debug/Szonda.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240304/Szonda/bin/Debug/Szonda.pdb b/20240304/Szonda/bin/Debug/Szonda.pdb new file mode 100644 index 0000000..087b3c0 Binary files /dev/null and b/20240304/Szonda/bin/Debug/Szonda.pdb differ diff --git a/20240304/Szonda/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240304/Szonda/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240304/Szonda/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/20240304/Szonda/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240304/Szonda/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3d2c014 Binary files /dev/null and b/20240304/Szonda/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240304/Szonda/obj/Debug/Szonda.Form1.resources b/20240304/Szonda/obj/Debug/Szonda.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240304/Szonda/obj/Debug/Szonda.Form1.resources differ diff --git a/20240304/Szonda/obj/Debug/Szonda.Properties.Resources.resources b/20240304/Szonda/obj/Debug/Szonda.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240304/Szonda/obj/Debug/Szonda.Properties.Resources.resources differ diff --git a/20240304/Szonda/obj/Debug/Szonda.csproj.AssemblyReference.cache b/20240304/Szonda/obj/Debug/Szonda.csproj.AssemblyReference.cache new file mode 100644 index 0000000..84695b8 Binary files /dev/null and b/20240304/Szonda/obj/Debug/Szonda.csproj.AssemblyReference.cache differ diff --git a/20240304/Szonda/obj/Debug/Szonda.csproj.CoreCompileInputs.cache b/20240304/Szonda/obj/Debug/Szonda.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4a5524a --- /dev/null +++ b/20240304/Szonda/obj/Debug/Szonda.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +8069502011d0681850e57a53d5a1673222f430a6 diff --git a/20240304/Szonda/obj/Debug/Szonda.csproj.FileListAbsolute.txt b/20240304/Szonda/obj/Debug/Szonda.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1fa03ff --- /dev/null +++ b/20240304/Szonda/obj/Debug/Szonda.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\bin\Debug\Szonda.exe.config +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\bin\Debug\Szonda.exe +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\bin\Debug\Szonda.pdb +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.Form1.resources +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.exe +C:\Users\szabomarton\Desktop\C#\20240304\Szonda\obj\Debug\Szonda.pdb diff --git a/20240304/Szonda/obj/Debug/Szonda.csproj.GenerateResource.cache b/20240304/Szonda/obj/Debug/Szonda.csproj.GenerateResource.cache new file mode 100644 index 0000000..64309db Binary files /dev/null and b/20240304/Szonda/obj/Debug/Szonda.csproj.GenerateResource.cache differ diff --git a/20240304/Szonda/obj/Debug/Szonda.exe b/20240304/Szonda/obj/Debug/Szonda.exe new file mode 100644 index 0000000..3f35d73 Binary files /dev/null and b/20240304/Szonda/obj/Debug/Szonda.exe differ diff --git a/20240304/Szonda/obj/Debug/Szonda.pdb b/20240304/Szonda/obj/Debug/Szonda.pdb new file mode 100644 index 0000000..087b3c0 Binary files /dev/null and b/20240304/Szonda/obj/Debug/Szonda.pdb differ