diff --git a/20240527/ConsoleApp1/.vs/ConsoleApp1/v16/.suo b/20240527/ConsoleApp1/.vs/ConsoleApp1/v16/.suo new file mode 100644 index 0000000..ecdf41c Binary files /dev/null and b/20240527/ConsoleApp1/.vs/ConsoleApp1/v16/.suo differ diff --git a/20240527/ConsoleApp1/ConsoleApp1.sln b/20240527/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..e3107de --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.34729.46 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{D216FBE7-57E2-44FE-9589-59ACE0865655}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D216FBE7-57E2-44FE-9589-59ACE0865655}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D216FBE7-57E2-44FE-9589-59ACE0865655}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D216FBE7-57E2-44FE-9589-59ACE0865655}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D216FBE7-57E2-44FE-9589-59ACE0865655}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {BC24084B-F151-4ECF-95BD-EEDEE846CC8F} + EndGlobalSection +EndGlobal diff --git a/20240527/ConsoleApp1/ConsoleApp1/App.config b/20240527/ConsoleApp1/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240527/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj b/20240527/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..fdf55c8 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {D216FBE7-57E2-44FE-9589-59ACE0865655} + Exe + ConsoleApp1 + ConsoleApp1 + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/20240527/ConsoleApp1/ConsoleApp1/Program.cs b/20240527/ConsoleApp1/ConsoleApp1/Program.cs new file mode 100644 index 0000000..6d85554 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/Program.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + class Program + { + static void Main(string[] args) + { + Random random = new Random(); + Console.WriteLine(random.Next(1, 6)); + Console.ReadKey(); + + } + } +} diff --git a/20240527/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs b/20240527/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..d709cd4 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/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("ConsoleApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ConsoleApp1")] +[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("d216fbe7-57e2-44fe-9589-59ace0865655")] + +// 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/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..46f58d1 Binary files /dev/null and b/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..3457066 Binary files /dev/null and b/20240527/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/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/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..2796148 --- /dev/null +++ b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..46f58d1 Binary files /dev/null and b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..3457066 Binary files /dev/null and b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..ccc2ac1 Binary files /dev/null and b/20240527/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240603/Feladat.pdf b/20240603/Feladat.pdf new file mode 100644 index 0000000..5968514 Binary files /dev/null and b/20240603/Feladat.pdf differ diff --git a/20240603/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo b/20240603/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo new file mode 100644 index 0000000..cb310d2 Binary files /dev/null and b/20240603/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1.sln b/20240603/WindowsFormsApp1/WindowsFormsApp1.sln new file mode 100644 index 0000000..9cb5324 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.34729.46 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{3BBA8D35-4251-430B-A103-BF85E8EA8731}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3BBA8D35-4251-430B-A103-BF85E8EA8731}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3BBA8D35-4251-430B-A103-BF85E8EA8731}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3BBA8D35-4251-430B-A103-BF85E8EA8731}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3BBA8D35-4251-430B-A103-BF85E8EA8731}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E914A7CA-8706-410E-A47B-33149094F64E} + EndGlobalSection +EndGlobal diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/App.config b/20240603/WindowsFormsApp1/WindowsFormsApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..78d0c18 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs @@ -0,0 +1,187 @@ + +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.listBox1 = new System.Windows.Forms.ListBox(); + this.label1 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + 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.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // listBox1 + // + this.listBox1.FormattingEnabled = true; + this.listBox1.Location = new System.Drawing.Point(385, 57); + this.listBox1.Name = "listBox1"; + this.listBox1.Size = new System.Drawing.Size(403, 381); + this.listBox1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(21, 25); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(27, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Név"; + this.label1.Click += new System.EventHandler(this.label1_Click); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(112, 18); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(233, 20); + this.textBox1.TabIndex = 2; + this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(21, 71); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(41, 13); + this.label2.TabIndex = 3; + this.label2.Text = "Osztály"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(21, 130); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(48, 13); + this.label3.TabIndex = 4; + this.label3.Text = "Első nap"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(21, 186); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(58, 13); + this.label4.TabIndex = 5; + this.label4.Text = "Utolsó nap"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(21, 240); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(79, 13); + this.label5.TabIndex = 6; + this.label5.Text = "Mulasztott órák"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(112, 296); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(233, 40); + this.button1.TabIndex = 7; + this.button1.Text = "Hiányzás rögzítése"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(112, 71); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(233, 20); + this.textBox2.TabIndex = 8; + // + // textBox3 + // + this.textBox3.Location = new System.Drawing.Point(112, 130); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(233, 20); + this.textBox3.TabIndex = 9; + // + // textBox4 + // + this.textBox4.Location = new System.Drawing.Point(112, 183); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(233, 20); + this.textBox4.TabIndex = 10; + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(112, 237); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(233, 20); + this.textBox5.TabIndex = 11; + // + // 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.textBox5); + this.Controls.Add(this.textBox4); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.textBox2); + 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.textBox1); + this.Controls.Add(this.label1); + this.Controls.Add(this.listBox1); + this.Name = "Form1"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox textBox1; + 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 textBox2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.TextBox textBox5; + } +} + diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.cs new file mode 100644 index 0000000..3b30350 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.cs @@ -0,0 +1,128 @@ +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; +using System.IO; + +namespace WindowsFormsApp1 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + FileRead(); + ListBoxFill(); + } + + void FileRead() + { + string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\szeptember.csv"; + FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read); + StreamReader streamReader = new StreamReader(fileStream); + + string line = streamReader.ReadLine(); + Data.header = line.Split(';'); + line = streamReader.ReadLine(); + while (line != null) + { + string[] datas = line.Split(';'); + int elso = Convert.ToInt32(datas[2]); + int utolso = Convert.ToInt32(datas[3]); + int mulasztott = Convert.ToInt32(datas[4]); + + Tanulo diak = new Tanulo(datas[0], datas[1], elso, utolso, mulasztott); + Data.tanulok.Add(diak); + line = streamReader.ReadLine(); + } + + streamReader.Close(); + fileStream.Close(); + } + + void ListBoxFill() + { + string header = $"{Data.header[0]}\t\t{Data.header[1]}\t{Data.header[2]}\t{Data.header[3]}\t{Data.header[4]}"; + listBox1.Items.Add(header); + foreach (var item in Data.tanulok) + { + string pattern = $"{item.nev}\t{item.osztaly}\t{item.elso}\t{item.utolso}\t\t{item.mulasztott}"; + listBox1.Items.Add(pattern); + } + } + + private void label1_Click(object sender, EventArgs e) + { + + } + + private void textBox1_TextChanged(object sender, EventArgs e) + { + + } + + private void button1_Click(object sender, EventArgs e) + { + if (IsNotEmpty()) + { + int elso, utolso, mulasztas; + if (int.TryParse(textBox3.Text, out elso) && int.TryParse(textBox4.Text, out utolso) && int.TryParse(textBox5.Text, out mulasztas)) + { + Tanulo diak = new Tanulo(textBox1.Text, textBox2.Text, elso, utolso, mulasztas); + Data.tanulok.Add(diak); + + } + else + { + MessageBox.Show("Hiba. Kérem a mezőkbe a megfelelő adatot szolgáltasson!"); + } + } + else + { + MessageBox.Show("Hiba. Valamelyik mezőt nem töltötte ki."); + } + } + + bool IsNotEmpty() + { + if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && textBox4.Text != "" && textBox5.Text != "") + { + return true; + } + return false; + } + } + + public static class Data + { + public static List tanulok = new List(); + public static string[] header; + } + + public class Tanulo + { + public string nev; + public string osztaly; + public int elso; + public int utolso; + public int mulasztott; + + public Tanulo(string nev, string osztaly, int elso, int utolso, int mulasztott) + { + this.nev = nev; + this.osztaly = osztaly; + this.elso = elso; + this.utolso = utolso; + this.mulasztott = mulasztott; + } + } +} diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.resx b/20240603/WindowsFormsApp1/WindowsFormsApp1/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/20240603/WindowsFormsApp1/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/20240603/WindowsFormsApp1/WindowsFormsApp1/Program.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/Program.cs new file mode 100644 index 0000000..30a0128 --- /dev/null +++ b/20240603/WindowsFormsApp1/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/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b52bb89 --- /dev/null +++ b/20240603/WindowsFormsApp1/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("3bba8d35-4251-430b-a103-bf85e8ea8731")] + +// 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/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2b9cd9f --- /dev/null +++ b/20240603/WindowsFormsApp1/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/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx b/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20240603/WindowsFormsApp1/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/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..3cdaf80 --- /dev/null +++ b/20240603/WindowsFormsApp1/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/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings b/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj b/20240603/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj new file mode 100644 index 0000000..19a3938 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {3BBA8D35-4251-430B-A103-BF85E8EA8731} + 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/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe new file mode 100644 index 0000000..20143e8 Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb new file mode 100644 index 0000000..56aec2a Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/szeptember.csv b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/szeptember.csv new file mode 100644 index 0000000..b6fa218 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/szeptember.csv @@ -0,0 +1,101 @@ +Név;Osztály;Első nap;Utolsó nap;Mulasztott órák +Balogh Péter;6a;1;1;5 +Horváth Judit;5a;1;1;5 +Juhász János;6a;1;1;5 +Lengyel Krisztina;6b;1;1;6 +Török Béla;3b;1;1;6 +László Péter;4b;1;1;6 +Török Béla;3b;4;4;6 +László Péter;4b;4;4;5 +Magyar Nóra;8a;4;4;6 +Nagy András;5b;4;4;5 +Gyüre István;8b;5;5;6 +Kiss Tamás;3b;5;5;5 +Nagy Eszter;5b;5;5;6 +Tóth Ádám;7b;5;5;5 +Arnóczki István;4a;6;6;6 +Gyüre István;8b;6;6;6 +Kiss Tamás;3b;6;6;5 +Szabó Dalma;7a;6;6;6 +Bakajsza Ferenc;3a;7;7;6 +Lippai Tibor;3b;7;7;5 +Tóth Tibor;4b;7;7;5 +Balogh József;8a;8;8;5 +Barabás Attila;8b;8;8;7 +Hamza Dezső;1a;8;8;5 +Szilágyi Tibor;8b;8;8;5 +Fehér Virág;1a;11;11;6 +Kis Katalin;8a;11;11;7 +Kovács Imre;2a;11;11;6 +Novák Sándor;1b;11;11;5 +Tirpák Ferenc;2b;11;11;5 +Arnóczki István;4a;12;12;6 +Bakajsza Ferenc;3a;12;12;6 +Lippai Tibor;3b;12;12;5 +Nagy Emese;5a;12;12;6 +Tóth Tibor;4b;12;12;5 +Magyari Ildikó;6b;14;14;5 +Sajtos Enikő;6a;14;14;6 +Soltész Anna;5b;14;14;5 +Bodnár Tímea;6a;15;15;6 +Csimbók Ernő;7b;15;15;5 +Kropkó Áron;7a;15;15;5 +Németh Anna;8a;15;15;7 +Balogh József;8a;18;18;5 +Barabás Attila;8b;18;18;7 +Hamza Dezső;1a;18;18;4 +Horváth Gergely;1b;18;18;5 +Szilágyi Tibor;8b;18;18;5 +Fekete Viktória;3a;19;19;5 +Fekete Zsolt;4a;19;19;5 +Fodor Éva;4a;19;19;6 +Hegedűs Andrea;6b;19;19;6 +Katona Ágnes;7b;19;19;7 +Lukács Eszter;5a;19;19;5 +Nagy Mihály;6b;19;19;6 +Pintér Ferenc;3a;19;19;5 +Szilágyi Ildikó;3a;19;19;6 +Török Viktória;6a;19;19;5 +Lengyel Krisztina;6b;20;20;5 +Nagy Emese;5a;20;20;5 +Soltész Anna;5b;20;20;6 +Barabás Attila;8b;21;21;5 +Barna Mátyás;8b;21;21;6 +Szilágyi Ildikó;3a;21;21;5 +Barna Mátyás;8b;22;22;7 +Bogdán Anna;5b;22;22;6 +Márta Ádám;8b;22;22;6 +Somogyi Dániel;5a;22;22;5 +Balla Rajmund;2b;25;25;5 +Budai Csab;6b;25;25;6 +Molnár Hanna;4a;25;25;6 +Németh Gergely;7a;25;25;7 +Novák Donát;5a;25;25;5 +Soós Csenge;4a;25;25;6 +Szilágyi Tibor;8b;25;25;5 +Balla Rajmund;2b;26;26;5 +Katona Ágnes;7b;26;26;5 +Kis Katalin;8a;26;26;6 +Lakatos Viktória;3a;26;26;6 +Szilágyi Ildikó;3a;26;26;5 +Török Viktória;6a;26;26;5 +Vörös Ágnes;4b;26;26;5 +Balla Rajmund;2b;27;27;4 +Borbély Csaba;2b;27;27;5 +Farkas Nándor;6a;27;27;6 +Fekete Noel;3a;27;27;5 +Halász Jakab;3b;27;27;6 +Kelemen Béla;4a;27;27;6 +Kozma Viktor;5a;27;27;5 +Molnár Hanna;4a;27;27;6 +Tamás Klaudia;4b;27;27;5 +Dobos Benedek;8a;28;28;6 +Gulyás Veronika;4b;28;28;5 +Katona Ágnes;7b;28;28;6 +Márton Blanka;8b;28;28;5 +Miksa Fruzsina;2b;28;28;5 +Szekeres Márió;2b;28;28;4 +Kocsis Panna;7a;29;29;5 +Molnár Hanna;4a;29;29;5 +Szilágyi Ildikó;3a;29;29;5 +Török Adél;2a;29;29;6 diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20240603/WindowsFormsApp1/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/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..a6920de Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..c3115ad Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..84695b8 Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4a5524a --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +8069502011d0681850e57a53d5a1673222f430a6 diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1666a46 --- /dev/null +++ b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache new file mode 100644 index 0000000..2a849a4 Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe new file mode 100644 index 0000000..20143e8 Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe differ diff --git a/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb new file mode 100644 index 0000000..56aec2a Binary files /dev/null and b/20240603/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb differ