diff --git a/20240226/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo b/20240226/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo new file mode 100644 index 0000000..2db6544 Binary files /dev/null and b/20240226/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo differ diff --git a/20240226/WindowsFormsApp1/App.config b/20240226/WindowsFormsApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240226/WindowsFormsApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240226/WindowsFormsApp1/Form1.Designer.cs b/20240226/WindowsFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..f5df76b --- /dev/null +++ b/20240226/WindowsFormsApp1/Form1.Designer.cs @@ -0,0 +1,120 @@ + +namespace WindowsFormsApp1 +{ + 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.label3 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(97, 97); + this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(124, 26); + this.label1.TabIndex = 0; + this.label1.Text = "Kör sugara:"; + this.label1.Click += new System.EventHandler(this.label1_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(97, 256); + this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(152, 26); + this.label2.TabIndex = 1; + this.label2.Text = "A kör kerülete:"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(233, 97); + this.textBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(196, 32); + this.textBox1.TabIndex = 2; + this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(261, 147); + this.button1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(150, 44); + this.button1.TabIndex = 3; + this.button1.Text = "Számol"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(97, 328); + this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(147, 26); + this.label3.TabIndex = 4; + this.label3.Text = "A kör területe:"; + this.label3.Click += new System.EventHandler(this.label3_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(559, 468); + this.Controls.Add(this.label3); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F); + this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + 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; + private System.Windows.Forms.Label label3; + } +} + diff --git a/20240226/WindowsFormsApp1/Form1.cs b/20240226/WindowsFormsApp1/Form1.cs new file mode 100644 index 0000000..8447104 --- /dev/null +++ b/20240226/WindowsFormsApp1/Form1.cs @@ -0,0 +1,53 @@ +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 WindowsFormsApp1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void label1_Click(object sender, EventArgs e) + { + + } + + private void button1_Click(object sender, EventArgs e) + { + double r = Convert.ToDouble(textBox1.Text); + + label2.Text = $"A kör kerülete: {2 * r * Math.PI}"; + label3.Text = $"A kör területe: {r* r * Math.PI}"; + } + + private void textBox1_TextChanged(object sender, EventArgs e) + { + + } + + private void label3_Click(object sender, EventArgs e) + { + + } + + private void Form1_Load(object sender, EventArgs e) + { + + } + + private void radioButton1_CheckedChanged(object sender, EventArgs e) + { + + } + } +} diff --git a/20240226/WindowsFormsApp1/Form1.resx b/20240226/WindowsFormsApp1/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240226/WindowsFormsApp1/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/20240226/WindowsFormsApp1/Program.cs b/20240226/WindowsFormsApp1/Program.cs new file mode 100644 index 0000000..30a0128 --- /dev/null +++ b/20240226/WindowsFormsApp1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + 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/20240226/WindowsFormsApp1/Properties/AssemblyInfo.cs b/20240226/WindowsFormsApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..77d283f --- /dev/null +++ b/20240226/WindowsFormsApp1/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("WindowsFormsApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WindowsFormsApp1")] +[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("69e2f774-f784-4e9f-98f3-817b5fad4f7c")] + +// 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/20240226/WindowsFormsApp1/Properties/Resources.Designer.cs b/20240226/WindowsFormsApp1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2b9cd9f --- /dev/null +++ b/20240226/WindowsFormsApp1/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 WindowsFormsApp1.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("WindowsFormsApp1.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/20240226/WindowsFormsApp1/Properties/Resources.resx b/20240226/WindowsFormsApp1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240226/WindowsFormsApp1/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/20240226/WindowsFormsApp1/Properties/Settings.Designer.cs b/20240226/WindowsFormsApp1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..3cdaf80 --- /dev/null +++ b/20240226/WindowsFormsApp1/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 WindowsFormsApp1.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/20240226/WindowsFormsApp1/Properties/Settings.settings b/20240226/WindowsFormsApp1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240226/WindowsFormsApp1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240226/WindowsFormsApp1/WindowsFormsApp1.csproj b/20240226/WindowsFormsApp1/WindowsFormsApp1.csproj new file mode 100644 index 0000000..8ee9904 --- /dev/null +++ b/20240226/WindowsFormsApp1/WindowsFormsApp1.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {69E2F774-F784-4E9F-98F3-817B5FAD4F7C} + WinExe + WindowsFormsApp1 + WindowsFormsApp1 + 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/20240226/WindowsFormsApp1/WindowsFormsApp1.sln b/20240226/WindowsFormsApp1/WindowsFormsApp1.sln new file mode 100644 index 0000000..75f9468 --- /dev/null +++ b/20240226/WindowsFormsApp1/WindowsFormsApp1.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}") = "WindowsFormsApp1", "WindowsFormsApp1.csproj", "{69E2F774-F784-4E9F-98F3-817B5FAD4F7C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {69E2F774-F784-4E9F-98F3-817B5FAD4F7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {69E2F774-F784-4E9F-98F3-817B5FAD4F7C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {69E2F774-F784-4E9F-98F3-817B5FAD4F7C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {69E2F774-F784-4E9F-98F3-817B5FAD4F7C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {54B5A942-285B-4D91-BACB-14673A0B7ED1} + EndGlobalSection +EndGlobal diff --git a/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe b/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe new file mode 100644 index 0000000..7a4f22f Binary files /dev/null and b/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe differ diff --git a/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config b/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb b/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb new file mode 100644 index 0000000..794aac9 Binary files /dev/null and b/20240226/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240226/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240226/WindowsFormsApp1/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/20240226/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240226/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..a6920de Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240226/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..11692b7 Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4a5524a --- /dev/null +++ b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +8069502011d0681850e57a53d5a1673222f430a6 diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..5974290 --- /dev/null +++ b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe +C:\Users\szabomarton\Desktop\C#\20240226\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache new file mode 100644 index 0000000..3304343 Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe new file mode 100644 index 0000000..7a4f22f Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe differ diff --git a/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb new file mode 100644 index 0000000..794aac9 Binary files /dev/null and b/20240226/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb differ diff --git a/20240226/WindowsFormsApp2/.vs/WindowsFormsApp2/v16/.suo b/20240226/WindowsFormsApp2/.vs/WindowsFormsApp2/v16/.suo new file mode 100644 index 0000000..84afdbf Binary files /dev/null and b/20240226/WindowsFormsApp2/.vs/WindowsFormsApp2/v16/.suo differ diff --git a/20240226/WindowsFormsApp2/App.config b/20240226/WindowsFormsApp2/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240226/WindowsFormsApp2/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240226/WindowsFormsApp2/Form1.Designer.cs b/20240226/WindowsFormsApp2/Form1.Designer.cs new file mode 100644 index 0000000..db3cf4d --- /dev/null +++ b/20240226/WindowsFormsApp2/Form1.Designer.cs @@ -0,0 +1,163 @@ + +namespace WindowsFormsApp2 +{ + 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.checkBox1 = new System.Windows.Forms.CheckBox(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.checkBox3 = new System.Windows.Forms.CheckBox(); + this.radioButton1 = new System.Windows.Forms.RadioButton(); + this.radioButton2 = new System.Windows.Forms.RadioButton(); + this.radioButton3 = new System.Windows.Forms.RadioButton(); + this.button1 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(45, 105); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(80, 17); + this.checkBox1.TabIndex = 0; + this.checkBox1.Text = "checkBox1"; + this.checkBox1.UseVisualStyleBackColor = true; + this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); + // + // checkBox2 + // + this.checkBox2.AutoSize = true; + this.checkBox2.Location = new System.Drawing.Point(45, 128); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(80, 17); + this.checkBox2.TabIndex = 1; + this.checkBox2.Text = "checkBox2"; + this.checkBox2.UseVisualStyleBackColor = true; + this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); + // + // checkBox3 + // + this.checkBox3.AutoSize = true; + this.checkBox3.Location = new System.Drawing.Point(45, 151); + this.checkBox3.Name = "checkBox3"; + this.checkBox3.Size = new System.Drawing.Size(80, 17); + this.checkBox3.TabIndex = 2; + this.checkBox3.Text = "checkBox3"; + this.checkBox3.UseVisualStyleBackColor = true; + this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); + // + // radioButton1 + // + this.radioButton1.AutoSize = true; + this.radioButton1.Location = new System.Drawing.Point(178, 104); + this.radioButton1.Name = "radioButton1"; + this.radioButton1.Size = new System.Drawing.Size(85, 17); + this.radioButton1.TabIndex = 3; + this.radioButton1.TabStop = true; + this.radioButton1.Text = "radioButton1"; + this.radioButton1.UseVisualStyleBackColor = true; + this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); + // + // radioButton2 + // + this.radioButton2.AutoSize = true; + this.radioButton2.Location = new System.Drawing.Point(178, 127); + this.radioButton2.Name = "radioButton2"; + this.radioButton2.Size = new System.Drawing.Size(85, 17); + this.radioButton2.TabIndex = 4; + this.radioButton2.TabStop = true; + this.radioButton2.Text = "radioButton2"; + this.radioButton2.UseVisualStyleBackColor = true; + this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); + // + // radioButton3 + // + this.radioButton3.AutoSize = true; + this.radioButton3.Location = new System.Drawing.Point(178, 151); + this.radioButton3.Name = "radioButton3"; + this.radioButton3.Size = new System.Drawing.Size(85, 17); + this.radioButton3.TabIndex = 5; + this.radioButton3.TabStop = true; + this.radioButton3.Text = "radioButton3"; + this.radioButton3.UseVisualStyleBackColor = true; + this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(304, 151); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 6; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(463, 160); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(35, 13); + this.label1.TabIndex = 7; + this.label1.Text = "label1"; + this.label1.Click += new System.EventHandler(this.label1_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.label1); + this.Controls.Add(this.button1); + this.Controls.Add(this.radioButton3); + this.Controls.Add(this.radioButton2); + this.Controls.Add(this.radioButton1); + this.Controls.Add(this.checkBox3); + this.Controls.Add(this.checkBox2); + this.Controls.Add(this.checkBox1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.CheckBox checkBox3; + private System.Windows.Forms.RadioButton radioButton1; + private System.Windows.Forms.RadioButton radioButton2; + private System.Windows.Forms.RadioButton radioButton3; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label1; + } +} + diff --git a/20240226/WindowsFormsApp2/Form1.cs b/20240226/WindowsFormsApp2/Form1.cs new file mode 100644 index 0000000..49b4fcf --- /dev/null +++ b/20240226/WindowsFormsApp2/Form1.cs @@ -0,0 +1,59 @@ +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 WindowsFormsApp2 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void checkBox1_CheckedChanged(object sender, EventArgs e) + { + + } + + private void checkBox2_CheckedChanged(object sender, EventArgs e) + { + + } + + private void checkBox3_CheckedChanged(object sender, EventArgs e) + { + + } + + private void radioButton1_CheckedChanged(object sender, EventArgs e) + { + + } + + private void radioButton2_CheckedChanged(object sender, EventArgs e) + { + + } + + private void radioButton3_CheckedChanged(object sender, EventArgs e) + { + + } + + private void label1_Click(object sender, EventArgs e) + { + + } + private void button1_Click(object sender, EventArgs e) + { + + } + } +} diff --git a/20240226/WindowsFormsApp2/Form1.resx b/20240226/WindowsFormsApp2/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240226/WindowsFormsApp2/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/20240226/WindowsFormsApp2/Program.cs b/20240226/WindowsFormsApp2/Program.cs new file mode 100644 index 0000000..b187573 --- /dev/null +++ b/20240226/WindowsFormsApp2/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp2 +{ + 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/20240226/WindowsFormsApp2/Properties/AssemblyInfo.cs b/20240226/WindowsFormsApp2/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dac8219 --- /dev/null +++ b/20240226/WindowsFormsApp2/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("WindowsFormsApp2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WindowsFormsApp2")] +[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("6e7f25a3-9350-4868-a6d5-9fcfa7f79570")] + +// 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/20240226/WindowsFormsApp2/Properties/Resources.Designer.cs b/20240226/WindowsFormsApp2/Properties/Resources.Designer.cs new file mode 100644 index 0000000..fedadbe --- /dev/null +++ b/20240226/WindowsFormsApp2/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 WindowsFormsApp2.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("WindowsFormsApp2.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/20240226/WindowsFormsApp2/Properties/Resources.resx b/20240226/WindowsFormsApp2/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240226/WindowsFormsApp2/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/20240226/WindowsFormsApp2/Properties/Settings.Designer.cs b/20240226/WindowsFormsApp2/Properties/Settings.Designer.cs new file mode 100644 index 0000000..fec7aa7 --- /dev/null +++ b/20240226/WindowsFormsApp2/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 WindowsFormsApp2.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/20240226/WindowsFormsApp2/Properties/Settings.settings b/20240226/WindowsFormsApp2/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240226/WindowsFormsApp2/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240226/WindowsFormsApp2/WindowsFormsApp2.csproj b/20240226/WindowsFormsApp2/WindowsFormsApp2.csproj new file mode 100644 index 0000000..c900040 --- /dev/null +++ b/20240226/WindowsFormsApp2/WindowsFormsApp2.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {6E7F25A3-9350-4868-A6D5-9FCFA7F79570} + WinExe + WindowsFormsApp2 + WindowsFormsApp2 + 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/20240226/WindowsFormsApp2/WindowsFormsApp2.sln b/20240226/WindowsFormsApp2/WindowsFormsApp2.sln new file mode 100644 index 0000000..e1766c3 --- /dev/null +++ b/20240226/WindowsFormsApp2/WindowsFormsApp2.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}") = "WindowsFormsApp2", "WindowsFormsApp2.csproj", "{6E7F25A3-9350-4868-A6D5-9FCFA7F79570}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6E7F25A3-9350-4868-A6D5-9FCFA7F79570}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6E7F25A3-9350-4868-A6D5-9FCFA7F79570}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6E7F25A3-9350-4868-A6D5-9FCFA7F79570}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6E7F25A3-9350-4868-A6D5-9FCFA7F79570}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DAF4E80D-95A3-43EE-8817-698A7602E5E0} + EndGlobalSection +EndGlobal diff --git a/20240226/WindowsFormsApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240226/WindowsFormsApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240226/WindowsFormsApp2/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/20240226/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240226/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7e02cb4 Binary files /dev/null and b/20240226/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/form_anyag b/form_anyag index a40e54e..0b38ded 100644 --- a/form_anyag +++ b/form_anyag @@ -115,3 +115,49 @@ Az első paraméter az üzenetdobozban megjelenő szöveg. NMásodik címsor. Hatmadik nyomogomb. negyedik ikon. + + +Választógomb (RadioButton) + +Két állapota lehet. +Lehet őket csoportosítani, így a csoport közül lehet csak egyet választani. + +tulajdonság érték leírás +CheckAlign TopLeft...MiddleCenter...BottomRight Pozicionálás +Appearance bool Felirat megjelenés, akkor érdemes ha az AutoSize ki van kapcsolva. Ilyenkor ha nem fér el ... ot jelez. + +Jelölőnégyzet (CheckBox) + +Két vagy három állapota lehet. Indeterminate a harmadik + +Ha kétállapotúként akarjuk használni akkor simán Checked tulajdonsággal kell megállapítani. + +Harmadik állapothoz a ThreeState tulajdonságot true ra állítjuk. +Ezek után a CheckState tulajdonságnál tudjuk az állapotot beállítani. + +Tulajdonság érték leírás +Checked bool bejelölték e, két állapotnál + +ThreeState bool Default False + +CheckState Unchecked Három állapotnál alkalmazandó + Checked + Indeterminate + +A checkbox legtöbb tulajdonsága megegyezik a rádiógombéval. +Mindkét vezérlő esetén alapértelmezett és legfontosabb esemény a CheckChanged, állapotváltozáskor aktiválódik. + + +Csoportmező GroupBox, Panel +Ez a két konténer valósítja meg a csoportosításokat. +A checkboxnál különösen fontos. + +A csoportmező és a panel között megjelenésbeli különbség van. +A csoportmezőnek alapértelmezetten van felirata és szegélye. +A panelnak nincs felirata és szegélye, de beállítható és lehet görgetősávot hozzáadni. + +Tulajdonság GroupBox Panel +Text van Nincs +BorderStyle nincs, szegély van van default:none +AutoScroll Nincs Van +