diff --git a/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/5ebe200e-59e8-4ea2-94c8-fa8b9702dd8e.vsidx b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/5ebe200e-59e8-4ea2-94c8-fa8b9702dd8e.vsidx new file mode 100644 index 0000000..4ea630c Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/FileContentIndex/5ebe200e-59e8-4ea2-94c8-fa8b9702dd8e.vsidx differ diff --git a/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/.suo b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/.suo new file mode 100644 index 0000000..727f002 Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/.suo differ diff --git a/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..0fa039a --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.backup.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\ConsoleApp1\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{F9ED108E-BEE7-4B17-A187-DB35B3B28871}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20250220_dolgozat\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F9ED108E-BEE7-4B17-A187-DB35B3B28871}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeDocumentMoniker": "ConsoleApp1\\Program.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeToolTip": "ConsoleApp1\\Program.cs", + "ViewState": "AgIAAFQAAAAAAAAAAAAAAHUAAAAsAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-02-20T06:53:12.201Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json new file mode 100644 index 0000000..9bc5492 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json @@ -0,0 +1,37 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\ConsoleApp1\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{F9ED108E-BEE7-4B17-A187-DB35B3B28871}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20250220_dolgozat\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{F9ED108E-BEE7-4B17-A187-DB35B3B28871}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeDocumentMoniker": "ConsoleApp1\\Program.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\ConsoleApp1\\ConsoleApp1\\Program.cs", + "RelativeToolTip": "ConsoleApp1\\Program.cs", + "ViewState": "AgIAAD0AAAAAAAAAAAAAAGIAAAAFAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-02-20T06:53:12.201Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1.sln b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1.sln new file mode 100644 index 0000000..6206545 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{F9ED108E-BEE7-4B17-A187-DB35B3B28871}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9ED108E-BEE7-4B17-A187-DB35B3B28871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9ED108E-BEE7-4B17-A187-DB35B3B28871}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9ED108E-BEE7-4B17-A187-DB35B3B28871}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9ED108E-BEE7-4B17-A187-DB35B3B28871}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5477DBC1-A3E4-4C08-B79F-575ACEB50EB0} + EndGlobalSection +EndGlobal diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/App.config b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 0000000..8d5de0b --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {F9ED108E-BEE7-4B17-A187-DB35B3B28871} + 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/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/Program.cs b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/Program.cs new file mode 100644 index 0000000..0649f86 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/Program.cs @@ -0,0 +1,121 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConsoleApp1 +{ + public static class Eredmeny + { + public static List maszoList = new List(); + public static void AdatokBetoltese(string path) + { + string[] lines = File.ReadAllText(path).Split('\n'); + + foreach (string line in lines) + { + string[] data = line.Split(';'); + + int mid = Convert.ToInt32(data[0]); + string mnev = data[1]; + int szulev = Convert.ToInt32(data[2]); + int szulho = Convert.ToInt32(data[3]); + int nem = Convert.ToInt32(data[4]); + int magassag = Convert.ToInt32(data[5]); + double maszoido = Convert.ToDouble(data[6].Replace('.', ',')); + string orszag = data[7]; + + Maszo maszo = new Maszo(mid, mnev, szulev, szulho, nem, magassag, maszoido, orszag); + maszoList.Add(maszo); + } + } + + public static double AtlagosIdo() + { + return maszoList.Average(x => x.maszoido); + } + + public static void Gyorsak(string path) + { + FileStream fileStream = new FileStream(path, FileMode.Create, FileAccess.Write); + StreamWriter writer = new StreamWriter(fileStream); + + List gyorsak = maszoList.Where(x => x.magassag > 3000 && x.maszoido < 2000).ToList(); + + foreach (var item in gyorsak) + { + writer.Write($"{item.mid};{item.mnev};{item.szulev};{item.szulho};{(item.nem == 1 ? "férfi" : "nő")};{item.magassag};{item.maszoido};{item.orszag}\n"); + } + + writer.Close(); + fileStream.Close(); + } + + public static void Legmagasabb() { + var legjobb = maszoList.OrderByDescending(x => x.magassag).Take(1); + foreach (var item in legjobb) + { + Console.Write($"{item.mid};{item.mnev};{item.szulev};{item.szulho};{(item.nem == 1 ? "férfi" : "nő")};{item.magassag};{item.maszoido};{item.orszag}\n"); + } + } + + public static void OrszagonkentiLegjobb() + { + var legjobbak = maszoList.OrderByDescending(x => x.magassag).GroupBy(x => x.orszag); + + foreach (var legjobb in legjobbak) + { + Maszo item = legjobb.First(); + Console.Write($"{item.mid};{item.mnev};{item.szulev};{item.szulho};{(item.nem == 1 ? "férfi" : "nő")};{item.magassag};{item.maszoido};{item.orszag}\n"); + } + } + } + + public class Maszo + { + public int mid; + public string mnev; + public int szulev; + public int szulho; + // férfi - 1 | nő - 0 + public int nem; + public int magassag; + public double maszoido; + public string orszag; + + public Maszo(int mid, string mnev, int szulev, int szulho, int nem, int magassag, double maszoido, string orszag) + { + this.mid = mid; + this.mnev = mnev; + this.szulev = szulev; + this.szulho = szulho; + this.nem = nem; + this.magassag = magassag; + this.maszoido = maszoido; + this.orszag = orszag; + } + } + + internal class Program + { + static void Main(string[] args) + { + string path = "hegymaszo.csv"; + Eredmeny.AdatokBetoltese(path); + + Console.WriteLine($"5. feladat:"); + Console.WriteLine($"Az átlagos mászási idő: {Eredmeny.AtlagosIdo()}másodperc"); + + Console.WriteLine("6.feladat:"); + Eredmeny.Gyorsak("gyorsak.txt"); + + Console.WriteLine("7.feladat:"); + Eredmeny.Legmagasabb(); + + Console.WriteLine("8.feladat:"); + Eredmeny.OrszagonkentiLegjobb(); + } + } +} diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1d31ebe --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +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 © 2025")] +[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("f9ed108e-bee7-4b17-a187-db35b3b28871")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..ab7f6bf Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe differ diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..134448f Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb differ diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/gyorsak.txt b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/gyorsak.txt new file mode 100644 index 0000000..3b7eee7 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/gyorsak.txt @@ -0,0 +1,21 @@ +3010;Mászó_10;1986;11;nő;3828;1814,94;Olaszország +3021;Mászó_21;1992;7;férfi;3984;1525,89;Olaszország +3022;Mászó_22;1987;11;férfi;4401;1751,47;Ausztria +3031;Mászó_31;1996;9;nő;3955;1902,94;Ausztria +3034;Mászó_34;1985;2;férfi;4304;1509,14;Olaszország +3038;Mászó_38;1978;9;nő;3354;1668,55;Németország +3040;Mászó_40;1982;10;nő;4444;1850,38;Németország +3042;Mászó_42;2005;8;férfi;3919;1953,78;Ausztria +3050;Mászó_50;1985;4;nő;3880;1875,45;Franciaország +3053;Mászó_53;1992;12;nő;3789;1546,21;Ausztria +3056;Mászó_56;1976;6;férfi;3843;1625,68;Franciaország +3062;Mászó_62;1978;9;nő;3381;1742,76;USA +3063;Mászó_63;1998;4;nő;3462;1633,38;Japán +3065;Mászó_65;1991;8;férfi;4147;1824,27;USA +3067;Mászó_67;1988;12;férfi;3212;1875,95;Ausztria +3069;Mászó_69;1988;3;férfi;3612;1825,62;Japán +3074;Mászó_74;2000;10;férfi;4042;1871,86;Franciaország +3082;Mászó_82;2005;2;férfi;3304;1657,42;Ausztria +3083;Mászó_83;2010;1;férfi;3524;1864,84;Németország +3088;Mászó_88;1998;2;férfi;4150;1983,74;Japán +3097;Mászó_97;1982;2;férfi;3415;1920,16;Magyarország diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/hegymaszo.csv b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/hegymaszo.csv new file mode 100644 index 0000000..f87d54f --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/bin/Debug/hegymaszo.csv @@ -0,0 +1,100 @@ +3000;Mászó_0;1997;10;0;2906;1589.02;Olaszország +3001;Mászó_1;1991;10;1;2909;2815.66;Ausztria +3002;Mászó_2;1985;9;1;3286;3096.3;USA +3003;Mászó_3;2000;5;0;4238;2489.76;Olaszország +3004;Mászó_4;1994;2;0;3280;2957.8;Magyarország +3005;Mászó_5;2002;10;0;2913;2684.49;USA +3006;Mászó_6;1981;12;0;4294;2341.68;USA +3007;Mászó_7;2010;4;1;2502;2635.22;Olaszország +3008;Mászó_8;1985;11;0;3162;3190.86;Magyarország +3009;Mászó_9;1995;7;1;3843;3713.16;Ausztria +3010;Mászó_10;1986;11;0;3828;1814.94;Olaszország +3011;Mászó_11;1979;10;1;3947;2249.52;Japán +3012;Mászó_12;1996;10;0;2615;1605.8;USA +3013;Mászó_13;1980;10;1;4335;3957.03;USA +3014;Mászó_14;1998;6;0;2607;3429.16;Franciaország +3015;Mászó_15;1978;1;0;2816;1803.75;Németország +3016;Mászó_16;1989;3;1;4065;2134.86;USA +3017;Mászó_17;1998;10;1;4216;2772.11;Magyarország +3018;Mászó_18;2007;9;0;2600;3519.69;Ausztria +3019;Mászó_19;1977;6;1;3083;2063.17;USA +3020;Mászó_20;1978;11;1;2684;1598.85;Németország +3021;Mászó_21;1992;7;1;3984;1525.89;Olaszország +3022;Mászó_22;1987;11;1;4401;1751.47;Ausztria +3023;Mászó_23;2008;2;1;2620;2509.75;Olaszország +3024;Mászó_24;2005;6;1;4068;3023.59;Ausztria +3025;Mászó_25;2004;9;1;3922;3942.83;Olaszország +3026;Mászó_26;2000;11;0;4366;3061.9;Ausztria +3027;Mászó_27;1980;1;0;2800;2326.16;Németország +3028;Mászó_28;1982;12;0;4083;2863.62;Japán +3029;Mászó_29;2001;12;1;3547;3811.3;Ausztria +3030;Mászó_30;1985;5;1;4442;3959.69;Ausztria +3031;Mászó_31;1996;9;0;3955;1902.94;Ausztria +3032;Mászó_32;2005;5;0;3047;2388.05;Magyarország +3033;Mászó_33;1981;6;1;2671;1564.91;Japán +3034;Mászó_34;1985;2;1;4304;1509.14;Olaszország +3035;Mászó_35;1991;12;0;2839;2267.18;Japán +3036;Mászó_36;2006;8;0;2802;2220.02;Németország +3037;Mászó_37;2005;11;1;3498;2550.51;USA +3038;Mászó_38;1978;9;0;3354;1668.55;Németország +3039;Mászó_39;2004;4;1;2902;3347.28;Franciaország +3040;Mászó_40;1982;10;0;4444;1850.38;Németország +3041;Mászó_41;2005;9;1;2995;1570.75;Franciaország +3042;Mászó_42;2005;8;1;3919;1953.78;Ausztria +3043;Mászó_43;1994;6;0;3469;3366.14;Japán +3044;Mászó_44;1977;8;0;3247;2886.23;Magyarország +3045;Mászó_45;1987;9;0;3642;3277.6;Franciaország +3046;Mászó_46;1979;6;0;3966;2290.62;Franciaország +3047;Mászó_47;2001;3;0;3211;2348.56;Japán +3048;Mászó_48;1982;11;0;2996;3067.84;Magyarország +3049;Mászó_49;1999;7;0;2527;1773.51;Ausztria +3050;Mászó_50;1985;4;0;3880;1875.45;Franciaország +3051;Mászó_51;2008;2;1;4400;3196.72;Ausztria +3052;Mászó_52;1995;11;1;3231;3692.31;Ausztria +3053;Mászó_53;1992;12;0;3789;1546.21;Ausztria +3054;Mászó_54;1981;1;0;3427;3414.05;Franciaország +3055;Mászó_55;2009;4;1;3800;2994.94;USA +3056;Mászó_56;1976;6;1;3843;1625.68;Franciaország +3057;Mászó_57;2008;9;0;4400;3271.53;Olaszország +3058;Mászó_58;2002;1;0;2833;3747.84;USA +3059;Mászó_59;1988;11;1;3331;3568.48;Olaszország +3060;Mászó_60;1977;4;0;4090;3211.0;Magyarország +3061;Mászó_61;2002;8;0;3278;3784.52;Japán +3062;Mászó_62;1978;9;0;3381;1742.76;USA +3063;Mászó_63;1998;4;0;3462;1633.38;Japán +3064;Mászó_64;1987;5;1;3799;2499.18;Japán +3065;Mászó_65;1991;8;1;4147;1824.27;USA +3066;Mászó_66;1976;10;0;3667;3393.93;Japán +3067;Mászó_67;1988;12;1;3212;1875.95;Ausztria +3068;Mászó_68;1993;11;1;3858;3837.14;Japán +3069;Mászó_69;1988;3;1;3612;1825.62;Japán +3070;Mászó_70;2000;12;1;2786;3515.5;Ausztria +3071;Mászó_71;2000;8;0;3533;3887.95;Japán +3072;Mászó_72;2004;5;1;3324;3587.83;Ausztria +3073;Mászó_73;1979;3;0;2893;2997.62;Németország +3074;Mászó_74;2000;10;1;4042;1871.86;Franciaország +3075;Mászó_75;1996;12;1;3780;3345.02;Németország +3076;Mászó_76;2001;12;1;2780;2194.81;Japán +3077;Mászó_77;1996;9;0;3545;2387.79;Németország +3078;Mászó_78;2002;5;0;3996;3342.57;Ausztria +3079;Mászó_79;2010;7;0;4300;3531.28;Németország +3080;Mászó_80;1990;7;0;4144;2748.04;Japán +3081;Mászó_81;2008;9;1;2976;3095.37;Németország +3082;Mászó_82;2005;2;1;3304;1657.42;Ausztria +3083;Mászó_83;2010;1;1;3524;1864.84;Németország +3084;Mászó_84;1984;8;0;2801;1964.58;USA +3085;Mászó_85;1978;2;0;2722;2823.63;Magyarország +3086;Mászó_86;1981;12;0;2898;3054.71;Magyarország +3087;Mászó_87;1983;3;1;2848;3230.96;Franciaország +3088;Mászó_88;1998;2;1;4150;1983.74;Japán +3089;Mászó_89;2004;5;0;2892;1764.69;Magyarország +3090;Mászó_90;1984;5;1;2517;2449.84;Olaszország +3091;Mászó_91;2003;11;1;3419;2056.36;USA +3092;Mászó_92;1981;5;1;3195;3001.22;Olaszország +3093;Mászó_93;1996;1;1;3945;3683.62;USA +3094;Mászó_94;1998;7;1;3257;3521.82;Magyarország +3095;Mászó_95;2006;11;1;3523;3394.41;Ausztria +3096;Mászó_96;1997;1;0;2737;3624.81;USA +3097;Mászó_97;1982;2;1;3415;1920.16;Magyarország +3098;Mászó_98;1988;5;1;3145;3230.61;Franciaország +3099;Mászó_99;1988;2;0;2675;1517.15;Ausztria \ No newline at end of file diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20250220_Dolgozat/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/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache new file mode 100644 index 0000000..126ed02 Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.AssemblyReference.cache differ diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..0be8d26 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +137ddb1975586287657f37337b64d051167bb6a147915d9fb5b8eb94b1093509 diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..076a9a5 --- /dev/null +++ b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe new file mode 100644 index 0000000..ab7f6bf Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe differ diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb new file mode 100644 index 0000000..134448f Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb differ diff --git a/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..69e2f4c Binary files /dev/null and b/20250220_Dolgozat/ConsoleApp1/ConsoleApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20250220_Dolgozat/Dolgozat.pdf b/20250220_Dolgozat/Dolgozat.pdf new file mode 100644 index 0000000..74731ab Binary files /dev/null and b/20250220_Dolgozat/Dolgozat.pdf differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/FileContentIndex/140fb4a6-8be0-43bb-9d69-f5ebe00d1095.vsidx b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/FileContentIndex/140fb4a6-8be0-43bb-9d69-f5ebe00d1095.vsidx new file mode 100644 index 0000000..47fd5c5 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/FileContentIndex/140fb4a6-8be0-43bb-9d69-f5ebe00d1095.vsidx differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/.suo b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/.suo new file mode 100644 index 0000000..c06d464 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/.suo differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/DocumentLayout.backup.json b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..ebb7b75 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/DocumentLayout.backup.json @@ -0,0 +1,53 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20250220_dolgozat\\hegymaszoversenygui\\hegymaszoversenygui\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}", + "RelativeMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|solutionrelative:hegymaszoversenygui\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}" + }, + { + "AbsoluteMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20250220_dolgozat\\hegymaszoversenygui\\hegymaszoversenygui\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|solutionrelative:hegymaszoversenygui\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "MainWindow.xaml", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml", + "RelativeDocumentMoniker": "HegymaszoVersenyGUI\\MainWindow.xaml", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml", + "RelativeToolTip": "HegymaszoVersenyGUI\\MainWindow.xaml", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|", + "WhenOpened": "2025-02-20T07:47:28.395Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "MainWindow.xaml.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "RelativeDocumentMoniker": "HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "RelativeToolTip": "HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "ViewState": "AgIAAFMAAAAAAAAAAAA2wIkAAACTAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-02-20T07:47:28.083Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/DocumentLayout.json b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/DocumentLayout.json new file mode 100644 index 0000000..ebb7b75 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/.vs/HegymaszoVersenyGUI/v17/DocumentLayout.json @@ -0,0 +1,53 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20250220_dolgozat\\hegymaszoversenygui\\hegymaszoversenygui\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}", + "RelativeMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|solutionrelative:hegymaszoversenygui\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}" + }, + { + "AbsoluteMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20250220_dolgozat\\hegymaszoversenygui\\hegymaszoversenygui\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{5432241B-8E04-460B-B922-5D3C49FE9A5C}|HegymaszoVersenyGUI\\HegymaszoVersenyGUI.csproj|solutionrelative:hegymaszoversenygui\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 0, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "MainWindow.xaml", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml", + "RelativeDocumentMoniker": "HegymaszoVersenyGUI\\MainWindow.xaml", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml", + "RelativeToolTip": "HegymaszoVersenyGUI\\MainWindow.xaml", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|", + "WhenOpened": "2025-02-20T07:47:28.395Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "MainWindow.xaml.cs", + "DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "RelativeDocumentMoniker": "HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20250220_Dolgozat\\HegymaszoVersenyGUI\\HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "RelativeToolTip": "HegymaszoVersenyGUI\\MainWindow.xaml.cs", + "ViewState": "AgIAAFMAAAAAAAAAAAA2wIkAAACTAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-02-20T07:47:28.083Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI.sln b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI.sln new file mode 100644 index 0000000..00941f3 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HegymaszoVersenyGUI", "HegymaszoVersenyGUI\HegymaszoVersenyGUI.csproj", "{5432241B-8E04-460B-B922-5D3C49FE9A5C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5432241B-8E04-460B-B922-5D3C49FE9A5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5432241B-8E04-460B-B922-5D3C49FE9A5C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5432241B-8E04-460B-B922-5D3C49FE9A5C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5432241B-8E04-460B-B922-5D3C49FE9A5C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {22278C51-F460-4F62-AD73-06F29B685692} + EndGlobalSection +EndGlobal diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.config b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.xaml b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.xaml new file mode 100644 index 0000000..f5a4d3b --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.xaml.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.xaml.cs new file mode 100644 index 0000000..4080995 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace HegymaszoVersenyGUI +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/HegymaszoVersenyGUI.csproj b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/HegymaszoVersenyGUI.csproj new file mode 100644 index 0000000..f419c4b --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/HegymaszoVersenyGUI.csproj @@ -0,0 +1,98 @@ + + + + + Debug + AnyCPU + {5432241B-8E04-460B-B922-5D3C49FE9A5C} + WinExe + HegymaszoVersenyGUI + HegymaszoVersenyGUI + v4.7.2 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/MainWindow.xaml b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/MainWindow.xaml new file mode 100644 index 0000000..5f320a5 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/MainWindow.xaml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + Versenyző + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Statisztika + + + + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/MainWindow.xaml.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/MainWindow.xaml.cs new file mode 100644 index 0000000..4ea49f1 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/MainWindow.xaml.cs @@ -0,0 +1,195 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace HegymaszoVersenyGUI +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public static class Eredmeny + { + public static List maszoList = new List(); + public static void AdatokBetoltese(string path) + { + string[] lines = File.ReadAllText(path).Split('\n'); + + foreach (string line in lines) + { + string[] data = line.Split(';'); + + int mid = Convert.ToInt32(data[0]); + string mnev = data[1]; + int szulev = Convert.ToInt32(data[2]); + int szulho = Convert.ToInt32(data[3]); + int nem = Convert.ToInt32(data[4]); + int magassag = Convert.ToInt32(data[5]); + double maszoido = Convert.ToDouble(data[6].Replace('.', ',')); + string orszag = data[7]; + + Maszo maszo = new Maszo(mid, mnev, szulev, szulho, nem, magassag, maszoido, orszag); + maszoList.Add(maszo); + } + } + + public static List OrszagonkentiAtlag() + { + List orszagok = new List(); + List statisztikaAdatok = new List(); + + foreach (var item in maszoList) + { + if (!orszagok.Contains(item.orszag)) + { + orszagok.Add(item.orszag); + } + } + + foreach (var orszag in orszagok) + { + Statisztika adat = new Statisztika(); + adat.orszag = orszag; + foreach (var item in maszoList) + { + if (orszag == item.orszag) + { + adat.darab++; + adat.osszIdo += item.maszoido; + adat.osszMagassag += item.magassag; + } + } + adat.atlagMagassag = adat.osszMagassag / adat.darab; + adat.atlagIdo = adat.osszIdo / adat.darab; + + statisztikaAdatok.Add(adat); + } + + return statisztikaAdatok; + + } + } + + public class Statisztika + { + public string orszag; + public double atlagMagassag; + public int darab = 0; + public double atlagIdo; + public double osszIdo; + public double osszMagassag; + } + + public class Maszo + { + public int mid; + public string mnev; + public int szulev; + public int szulho; + // férfi - 1 | nő - 0 + public int nem; + public int magassag; + public double maszoido; + public string orszag; + + public Maszo(int mid, string mnev, int szulev, int szulho, int nem, int magassag, double maszoido, string orszag) + { + this.mid = mid; + this.mnev = mnev; + this.szulev = szulev; + this.szulho = szulho; + this.nem = nem; + this.magassag = magassag; + this.maszoido = maszoido; + this.orszag = orszag; + } + + public string Kiir() + { + return $"{this.mid};{this.mnev};{this.szulev};{this.szulho};{(this.nem == 1 ? "férfi" : "nő")};{this.magassag};{this.maszoido};{this.orszag}\n"; + } + } + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + Eredmeny.AdatokBetoltese("hegymaszo.csv"); + + versenyzokListBox.Items.Clear(); + foreach (var item in Eredmeny.maszoList) + { + versenyzokListBox.Items.Add(item.Kiir()); + } + + foreach (var item in Eredmeny.OrszagonkentiAtlag()) + { + statisztikaListBox.Items.Add($"{item.orszag}: Átlagos idő: {item.atlagIdo} másodperc, Átlag magassag: {item.atlagMagassag} méter"); + } + + } + + private void versenyzokListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + try + { + Maszo maszo = Eredmeny.maszoList[versenyzokListBox.SelectedIndex]; + + midTextBox.Text = $"{maszo.mid}"; + mnevTextBox.Text = $"{maszo.mnev}"; + szulevTextBox.Text = $"{maszo.szulev}"; + szulhoTextBox.Text = $"{maszo.szulho}"; + nemTextBox.Text = $"{(maszo.nem == 1 ? "férfi" : "nő")}"; + magassagTextBox.Text = $"{maszo.magassag}"; + maszoidoTextBox.Text = $"{maszo.maszoido}"; + orszagTextBox.Text = $"{maszo.orszag}"; + } + catch (Exception ex) { + MessageBox.Show("Nincs kiválasztott versenyző!"); + } + } + + private void keresesButton_Click(object sender, RoutedEventArgs e) + { + foreach (var item in Eredmeny.maszoList) + { + if (mnevTextBox.Text == item.mnev) + { + midTextBox.Text = $"{item.mid}"; + mnevTextBox.Text = $"{item.mnev}"; + szulevTextBox.Text = $"{item.szulev}"; + szulhoTextBox.Text = $"{item.szulho}"; + nemTextBox.Text = $"{(item.nem == 1 ? "férfi" : "nő")}"; + magassagTextBox.Text = $"{item.magassag}"; + maszoidoTextBox.Text = $"{item.maszoido}"; + orszagTextBox.Text = $"{item.orszag}"; + break; + } + + if (midTextBox.Text == $"{item.mid}") + { + midTextBox.Text = $"{item.mid}"; + mnevTextBox.Text = $"{item.mnev}"; + szulevTextBox.Text = $"{item.szulev}"; + szulhoTextBox.Text = $"{item.szulho}"; + nemTextBox.Text = $"{(item.nem == 1 ? "férfi" : "nő")}"; + magassagTextBox.Text = $"{item.magassag}"; + maszoidoTextBox.Text = $"{item.maszoido}"; + orszagTextBox.Text = $"{item.orszag}"; + break; + } + } + } + } +} diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/AssemblyInfo.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..42d20b0 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/AssemblyInfo.cs @@ -0,0 +1,52 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 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("HegymaszoVersenyGUI")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HegymaszoVersenyGUI")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[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)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Resources.Designer.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Resources.Designer.cs new file mode 100644 index 0000000..3771a3b --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// 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 HegymaszoVersenyGUI.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("HegymaszoVersenyGUI.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/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Resources.resx b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/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/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Settings.Designer.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Settings.Designer.cs new file mode 100644 index 0000000..c17f485 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// 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 HegymaszoVersenyGUI.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/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Settings.settings b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.exe b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.exe new file mode 100644 index 0000000..13c5ae7 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.exe differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.exe.config b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.pdb b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.pdb new file mode 100644 index 0000000..f6fafc0 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/HegymaszoVersenyGUI.pdb differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/hegymaszo.csv b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/hegymaszo.csv new file mode 100644 index 0000000..f87d54f --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/bin/Debug/hegymaszo.csv @@ -0,0 +1,100 @@ +3000;Mászó_0;1997;10;0;2906;1589.02;Olaszország +3001;Mászó_1;1991;10;1;2909;2815.66;Ausztria +3002;Mászó_2;1985;9;1;3286;3096.3;USA +3003;Mászó_3;2000;5;0;4238;2489.76;Olaszország +3004;Mászó_4;1994;2;0;3280;2957.8;Magyarország +3005;Mászó_5;2002;10;0;2913;2684.49;USA +3006;Mászó_6;1981;12;0;4294;2341.68;USA +3007;Mászó_7;2010;4;1;2502;2635.22;Olaszország +3008;Mászó_8;1985;11;0;3162;3190.86;Magyarország +3009;Mászó_9;1995;7;1;3843;3713.16;Ausztria +3010;Mászó_10;1986;11;0;3828;1814.94;Olaszország +3011;Mászó_11;1979;10;1;3947;2249.52;Japán +3012;Mászó_12;1996;10;0;2615;1605.8;USA +3013;Mászó_13;1980;10;1;4335;3957.03;USA +3014;Mászó_14;1998;6;0;2607;3429.16;Franciaország +3015;Mászó_15;1978;1;0;2816;1803.75;Németország +3016;Mászó_16;1989;3;1;4065;2134.86;USA +3017;Mászó_17;1998;10;1;4216;2772.11;Magyarország +3018;Mászó_18;2007;9;0;2600;3519.69;Ausztria +3019;Mászó_19;1977;6;1;3083;2063.17;USA +3020;Mászó_20;1978;11;1;2684;1598.85;Németország +3021;Mászó_21;1992;7;1;3984;1525.89;Olaszország +3022;Mászó_22;1987;11;1;4401;1751.47;Ausztria +3023;Mászó_23;2008;2;1;2620;2509.75;Olaszország +3024;Mászó_24;2005;6;1;4068;3023.59;Ausztria +3025;Mászó_25;2004;9;1;3922;3942.83;Olaszország +3026;Mászó_26;2000;11;0;4366;3061.9;Ausztria +3027;Mászó_27;1980;1;0;2800;2326.16;Németország +3028;Mászó_28;1982;12;0;4083;2863.62;Japán +3029;Mászó_29;2001;12;1;3547;3811.3;Ausztria +3030;Mászó_30;1985;5;1;4442;3959.69;Ausztria +3031;Mászó_31;1996;9;0;3955;1902.94;Ausztria +3032;Mászó_32;2005;5;0;3047;2388.05;Magyarország +3033;Mászó_33;1981;6;1;2671;1564.91;Japán +3034;Mászó_34;1985;2;1;4304;1509.14;Olaszország +3035;Mászó_35;1991;12;0;2839;2267.18;Japán +3036;Mászó_36;2006;8;0;2802;2220.02;Németország +3037;Mászó_37;2005;11;1;3498;2550.51;USA +3038;Mászó_38;1978;9;0;3354;1668.55;Németország +3039;Mászó_39;2004;4;1;2902;3347.28;Franciaország +3040;Mászó_40;1982;10;0;4444;1850.38;Németország +3041;Mászó_41;2005;9;1;2995;1570.75;Franciaország +3042;Mászó_42;2005;8;1;3919;1953.78;Ausztria +3043;Mászó_43;1994;6;0;3469;3366.14;Japán +3044;Mászó_44;1977;8;0;3247;2886.23;Magyarország +3045;Mászó_45;1987;9;0;3642;3277.6;Franciaország +3046;Mászó_46;1979;6;0;3966;2290.62;Franciaország +3047;Mászó_47;2001;3;0;3211;2348.56;Japán +3048;Mászó_48;1982;11;0;2996;3067.84;Magyarország +3049;Mászó_49;1999;7;0;2527;1773.51;Ausztria +3050;Mászó_50;1985;4;0;3880;1875.45;Franciaország +3051;Mászó_51;2008;2;1;4400;3196.72;Ausztria +3052;Mászó_52;1995;11;1;3231;3692.31;Ausztria +3053;Mászó_53;1992;12;0;3789;1546.21;Ausztria +3054;Mászó_54;1981;1;0;3427;3414.05;Franciaország +3055;Mászó_55;2009;4;1;3800;2994.94;USA +3056;Mászó_56;1976;6;1;3843;1625.68;Franciaország +3057;Mászó_57;2008;9;0;4400;3271.53;Olaszország +3058;Mászó_58;2002;1;0;2833;3747.84;USA +3059;Mászó_59;1988;11;1;3331;3568.48;Olaszország +3060;Mászó_60;1977;4;0;4090;3211.0;Magyarország +3061;Mászó_61;2002;8;0;3278;3784.52;Japán +3062;Mászó_62;1978;9;0;3381;1742.76;USA +3063;Mászó_63;1998;4;0;3462;1633.38;Japán +3064;Mászó_64;1987;5;1;3799;2499.18;Japán +3065;Mászó_65;1991;8;1;4147;1824.27;USA +3066;Mászó_66;1976;10;0;3667;3393.93;Japán +3067;Mászó_67;1988;12;1;3212;1875.95;Ausztria +3068;Mászó_68;1993;11;1;3858;3837.14;Japán +3069;Mászó_69;1988;3;1;3612;1825.62;Japán +3070;Mászó_70;2000;12;1;2786;3515.5;Ausztria +3071;Mászó_71;2000;8;0;3533;3887.95;Japán +3072;Mászó_72;2004;5;1;3324;3587.83;Ausztria +3073;Mászó_73;1979;3;0;2893;2997.62;Németország +3074;Mászó_74;2000;10;1;4042;1871.86;Franciaország +3075;Mászó_75;1996;12;1;3780;3345.02;Németország +3076;Mászó_76;2001;12;1;2780;2194.81;Japán +3077;Mászó_77;1996;9;0;3545;2387.79;Németország +3078;Mászó_78;2002;5;0;3996;3342.57;Ausztria +3079;Mászó_79;2010;7;0;4300;3531.28;Németország +3080;Mászó_80;1990;7;0;4144;2748.04;Japán +3081;Mászó_81;2008;9;1;2976;3095.37;Németország +3082;Mászó_82;2005;2;1;3304;1657.42;Ausztria +3083;Mászó_83;2010;1;1;3524;1864.84;Németország +3084;Mászó_84;1984;8;0;2801;1964.58;USA +3085;Mászó_85;1978;2;0;2722;2823.63;Magyarország +3086;Mászó_86;1981;12;0;2898;3054.71;Magyarország +3087;Mászó_87;1983;3;1;2848;3230.96;Franciaország +3088;Mászó_88;1998;2;1;4150;1983.74;Japán +3089;Mászó_89;2004;5;0;2892;1764.69;Magyarország +3090;Mászó_90;1984;5;1;2517;2449.84;Olaszország +3091;Mászó_91;2003;11;1;3419;2056.36;USA +3092;Mászó_92;1981;5;1;3195;3001.22;Olaszország +3093;Mászó_93;1996;1;1;3945;3683.62;USA +3094;Mászó_94;1998;7;1;3257;3521.82;Magyarország +3095;Mászó_95;2006;11;1;3523;3394.41;Ausztria +3096;Mászó_96;1997;1;0;2737;3624.81;USA +3097;Mászó_97;1982;2;1;3415;1920.16;Magyarország +3098;Mászó_98;1988;5;1;3145;3230.61;Franciaország +3099;Mászó_99;1988;2;0;2675;1517.15;Ausztria \ No newline at end of file diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/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/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/App.g.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/App.g.cs new file mode 100644 index 0000000..7ff0c20 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/App.g.cs @@ -0,0 +1,70 @@ +#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2C0CB924AB03280274BB24AD7FA17C9E27F8C317E088BE6BB33A79665D45D101" +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using HegymaszoVersenyGUI; +using System; +using System.Diagnostics; +using System.Windows; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Effects; +using System.Windows.Media.Imaging; +using System.Windows.Media.Media3D; +using System.Windows.Media.TextFormatting; +using System.Windows.Navigation; +using System.Windows.Shapes; +using System.Windows.Shell; + + +namespace HegymaszoVersenyGUI { + + + /// + /// App + /// + public partial class App : System.Windows.Application { + + /// + /// InitializeComponent + /// + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + public void InitializeComponent() { + + #line 5 "..\..\App.xaml" + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); + + #line default + #line hidden + } + + /// + /// Application Entry Point. + /// + [System.STAThreadAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + public static void Main() { + HegymaszoVersenyGUI.App app = new HegymaszoVersenyGUI.App(); + app.InitializeComponent(); + app.Run(); + } + } +} + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/App.g.i.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/App.g.i.cs new file mode 100644 index 0000000..7ff0c20 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/App.g.i.cs @@ -0,0 +1,70 @@ +#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2C0CB924AB03280274BB24AD7FA17C9E27F8C317E088BE6BB33A79665D45D101" +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using HegymaszoVersenyGUI; +using System; +using System.Diagnostics; +using System.Windows; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Effects; +using System.Windows.Media.Imaging; +using System.Windows.Media.Media3D; +using System.Windows.Media.TextFormatting; +using System.Windows.Navigation; +using System.Windows.Shapes; +using System.Windows.Shell; + + +namespace HegymaszoVersenyGUI { + + + /// + /// App + /// + public partial class App : System.Windows.Application { + + /// + /// InitializeComponent + /// + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + public void InitializeComponent() { + + #line 5 "..\..\App.xaml" + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); + + #line default + #line hidden + } + + /// + /// Application Entry Point. + /// + [System.STAThreadAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + public static void Main() { + HegymaszoVersenyGUI.App app = new HegymaszoVersenyGUI.App(); + app.InitializeComponent(); + app.Run(); + } + } +} + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..a16f742 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.Properties.Resources.resources b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.Properties.Resources.resources differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.AssemblyReference.cache b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.AssemblyReference.cache new file mode 100644 index 0000000..7f9ac73 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.AssemblyReference.cache differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.CoreCompileInputs.cache b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4b31c3c --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +cc3ec13d7045cbc2e519e0d53ba5329b44a2cb8f225b06e825352843bc50abdd diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.FileListAbsolute.txt b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..547eebb --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\bin\Debug\HegymaszoVersenyGUI.exe.config +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\bin\Debug\HegymaszoVersenyGUI.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\bin\Debug\HegymaszoVersenyGUI.pdb +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.csproj.AssemblyReference.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\MainWindow.g.cs +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\App.g.cs +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI_MarkupCompile.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI_MarkupCompile.lref +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\MainWindow.baml +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.g.resources +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.Properties.Resources.resources +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.csproj.GenerateResource.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.csproj.CoreCompileInputs.cache +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.exe +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\HegymaszoVersenyGUI.pdb diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.GenerateResource.cache b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.GenerateResource.cache new file mode 100644 index 0000000..211da53 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.csproj.GenerateResource.cache differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.exe b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.exe new file mode 100644 index 0000000..13c5ae7 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.exe differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.g.resources b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.g.resources new file mode 100644 index 0000000..4007434 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.g.resources differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.pdb b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.pdb new file mode 100644 index 0000000..f6fafc0 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI.pdb differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.cache b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.cache new file mode 100644 index 0000000..604ff55 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.cache @@ -0,0 +1,20 @@ +HegymaszoVersenyGUI + + +winexe +C# +.cs +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\ +HegymaszoVersenyGUI +none +false +DEBUG;TRACE +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\App.xaml +1219584333 + +51579654133 +13-1310406943 +MainWindow.xaml; + +False + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.i.cache b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.i.cache new file mode 100644 index 0000000..f11b344 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.i.cache @@ -0,0 +1,20 @@ +HegymaszoVersenyGUI + + +winexe +C# +.cs +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\obj\Debug\ +HegymaszoVersenyGUI +none +false +DEBUG;TRACE +C:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\App.xaml +1219584333 + +6-502434485 +13-1310406943 +MainWindow.xaml; + +True + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.i.lref b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.i.lref new file mode 100644 index 0000000..1d44657 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.i.lref @@ -0,0 +1,4 @@ + + +FC:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\MainWindow.xaml;; + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.lref b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.lref new file mode 100644 index 0000000..1d44657 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/HegymaszoVersenyGUI_MarkupCompile.lref @@ -0,0 +1,4 @@ + + +FC:\Users\szabomarton\Desktop\C#\ProgaOra\20250220_Dolgozat\HegymaszoVersenyGUI\HegymaszoVersenyGUI\MainWindow.xaml;; + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.baml b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.baml new file mode 100644 index 0000000..ad957d9 Binary files /dev/null and b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.baml differ diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.g.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.g.cs new file mode 100644 index 0000000..3f53d23 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.g.cs @@ -0,0 +1,211 @@ +#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "B4CB31DB91550D77D4C4ED1AEECFE69EB6885E099DD45C4C05B75AE3A13B5524" +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using HegymaszoVersenyGUI; +using System; +using System.Diagnostics; +using System.Windows; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Effects; +using System.Windows.Media.Imaging; +using System.Windows.Media.Media3D; +using System.Windows.Media.TextFormatting; +using System.Windows.Navigation; +using System.Windows.Shapes; +using System.Windows.Shell; + + +namespace HegymaszoVersenyGUI { + + + /// + /// MainWindow + /// + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { + + + #line 21 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.ListBox versenyzokListBox; + + #line default + #line hidden + + + #line 43 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox midTextBox; + + #line default + #line hidden + + + #line 46 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox mnevTextBox; + + #line default + #line hidden + + + #line 49 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox szulevTextBox; + + #line default + #line hidden + + + #line 52 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox szulhoTextBox; + + #line default + #line hidden + + + #line 55 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox nemTextBox; + + #line default + #line hidden + + + #line 58 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox magassagTextBox; + + #line default + #line hidden + + + #line 61 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox maszoidoTextBox; + + #line default + #line hidden + + + #line 64 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox orszagTextBox; + + #line default + #line hidden + + + #line 72 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.Button keresesButton; + + #line default + #line hidden + + + #line 76 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.ListBox statisztikaListBox; + + #line default + #line hidden + + private bool _contentLoaded; + + /// + /// InitializeComponent + /// + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + public void InitializeComponent() { + if (_contentLoaded) { + return; + } + _contentLoaded = true; + System.Uri resourceLocater = new System.Uri("/HegymaszoVersenyGUI;component/mainwindow.xaml", System.UriKind.Relative); + + #line 1 "..\..\MainWindow.xaml" + System.Windows.Application.LoadComponent(this, resourceLocater); + + #line default + #line hidden + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { + switch (connectionId) + { + case 1: + this.versenyzokListBox = ((System.Windows.Controls.ListBox)(target)); + + #line 21 "..\..\MainWindow.xaml" + this.versenyzokListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.versenyzokListBox_SelectionChanged); + + #line default + #line hidden + return; + case 2: + this.midTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 3: + this.mnevTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 4: + this.szulevTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 5: + this.szulhoTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 6: + this.nemTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 7: + this.magassagTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 8: + this.maszoidoTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 9: + this.orszagTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 10: + this.keresesButton = ((System.Windows.Controls.Button)(target)); + + #line 72 "..\..\MainWindow.xaml" + this.keresesButton.Click += new System.Windows.RoutedEventHandler(this.keresesButton_Click); + + #line default + #line hidden + return; + case 11: + this.statisztikaListBox = ((System.Windows.Controls.ListBox)(target)); + return; + } + this._contentLoaded = true; + } + } +} + diff --git a/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.g.i.cs b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.g.i.cs new file mode 100644 index 0000000..3f53d23 --- /dev/null +++ b/20250220_Dolgozat/HegymaszoVersenyGUI/HegymaszoVersenyGUI/obj/Debug/MainWindow.g.i.cs @@ -0,0 +1,211 @@ +#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "B4CB31DB91550D77D4C4ED1AEECFE69EB6885E099DD45C4C05B75AE3A13B5524" +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using HegymaszoVersenyGUI; +using System; +using System.Diagnostics; +using System.Windows; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Effects; +using System.Windows.Media.Imaging; +using System.Windows.Media.Media3D; +using System.Windows.Media.TextFormatting; +using System.Windows.Navigation; +using System.Windows.Shapes; +using System.Windows.Shell; + + +namespace HegymaszoVersenyGUI { + + + /// + /// MainWindow + /// + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { + + + #line 21 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.ListBox versenyzokListBox; + + #line default + #line hidden + + + #line 43 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox midTextBox; + + #line default + #line hidden + + + #line 46 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox mnevTextBox; + + #line default + #line hidden + + + #line 49 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox szulevTextBox; + + #line default + #line hidden + + + #line 52 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox szulhoTextBox; + + #line default + #line hidden + + + #line 55 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox nemTextBox; + + #line default + #line hidden + + + #line 58 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox magassagTextBox; + + #line default + #line hidden + + + #line 61 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox maszoidoTextBox; + + #line default + #line hidden + + + #line 64 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.TextBox orszagTextBox; + + #line default + #line hidden + + + #line 72 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.Button keresesButton; + + #line default + #line hidden + + + #line 76 "..\..\MainWindow.xaml" + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] + internal System.Windows.Controls.ListBox statisztikaListBox; + + #line default + #line hidden + + private bool _contentLoaded; + + /// + /// InitializeComponent + /// + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + public void InitializeComponent() { + if (_contentLoaded) { + return; + } + _contentLoaded = true; + System.Uri resourceLocater = new System.Uri("/HegymaszoVersenyGUI;component/mainwindow.xaml", System.UriKind.Relative); + + #line 1 "..\..\MainWindow.xaml" + System.Windows.Application.LoadComponent(this, resourceLocater); + + #line default + #line hidden + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { + switch (connectionId) + { + case 1: + this.versenyzokListBox = ((System.Windows.Controls.ListBox)(target)); + + #line 21 "..\..\MainWindow.xaml" + this.versenyzokListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.versenyzokListBox_SelectionChanged); + + #line default + #line hidden + return; + case 2: + this.midTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 3: + this.mnevTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 4: + this.szulevTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 5: + this.szulhoTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 6: + this.nemTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 7: + this.magassagTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 8: + this.maszoidoTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 9: + this.orszagTextBox = ((System.Windows.Controls.TextBox)(target)); + return; + case 10: + this.keresesButton = ((System.Windows.Controls.Button)(target)); + + #line 72 "..\..\MainWindow.xaml" + this.keresesButton.Click += new System.Windows.RoutedEventHandler(this.keresesButton_Click); + + #line default + #line hidden + return; + case 11: + this.statisztikaListBox = ((System.Windows.Controls.ListBox)(target)); + return; + } + this._contentLoaded = true; + } + } +} + diff --git a/20250220_Dolgozat/hegymaszo.csv b/20250220_Dolgozat/hegymaszo.csv new file mode 100644 index 0000000..f87d54f --- /dev/null +++ b/20250220_Dolgozat/hegymaszo.csv @@ -0,0 +1,100 @@ +3000;Mászó_0;1997;10;0;2906;1589.02;Olaszország +3001;Mászó_1;1991;10;1;2909;2815.66;Ausztria +3002;Mászó_2;1985;9;1;3286;3096.3;USA +3003;Mászó_3;2000;5;0;4238;2489.76;Olaszország +3004;Mászó_4;1994;2;0;3280;2957.8;Magyarország +3005;Mászó_5;2002;10;0;2913;2684.49;USA +3006;Mászó_6;1981;12;0;4294;2341.68;USA +3007;Mászó_7;2010;4;1;2502;2635.22;Olaszország +3008;Mászó_8;1985;11;0;3162;3190.86;Magyarország +3009;Mászó_9;1995;7;1;3843;3713.16;Ausztria +3010;Mászó_10;1986;11;0;3828;1814.94;Olaszország +3011;Mászó_11;1979;10;1;3947;2249.52;Japán +3012;Mászó_12;1996;10;0;2615;1605.8;USA +3013;Mászó_13;1980;10;1;4335;3957.03;USA +3014;Mászó_14;1998;6;0;2607;3429.16;Franciaország +3015;Mászó_15;1978;1;0;2816;1803.75;Németország +3016;Mászó_16;1989;3;1;4065;2134.86;USA +3017;Mászó_17;1998;10;1;4216;2772.11;Magyarország +3018;Mászó_18;2007;9;0;2600;3519.69;Ausztria +3019;Mászó_19;1977;6;1;3083;2063.17;USA +3020;Mászó_20;1978;11;1;2684;1598.85;Németország +3021;Mászó_21;1992;7;1;3984;1525.89;Olaszország +3022;Mászó_22;1987;11;1;4401;1751.47;Ausztria +3023;Mászó_23;2008;2;1;2620;2509.75;Olaszország +3024;Mászó_24;2005;6;1;4068;3023.59;Ausztria +3025;Mászó_25;2004;9;1;3922;3942.83;Olaszország +3026;Mászó_26;2000;11;0;4366;3061.9;Ausztria +3027;Mászó_27;1980;1;0;2800;2326.16;Németország +3028;Mászó_28;1982;12;0;4083;2863.62;Japán +3029;Mászó_29;2001;12;1;3547;3811.3;Ausztria +3030;Mászó_30;1985;5;1;4442;3959.69;Ausztria +3031;Mászó_31;1996;9;0;3955;1902.94;Ausztria +3032;Mászó_32;2005;5;0;3047;2388.05;Magyarország +3033;Mászó_33;1981;6;1;2671;1564.91;Japán +3034;Mászó_34;1985;2;1;4304;1509.14;Olaszország +3035;Mászó_35;1991;12;0;2839;2267.18;Japán +3036;Mászó_36;2006;8;0;2802;2220.02;Németország +3037;Mászó_37;2005;11;1;3498;2550.51;USA +3038;Mászó_38;1978;9;0;3354;1668.55;Németország +3039;Mászó_39;2004;4;1;2902;3347.28;Franciaország +3040;Mászó_40;1982;10;0;4444;1850.38;Németország +3041;Mászó_41;2005;9;1;2995;1570.75;Franciaország +3042;Mászó_42;2005;8;1;3919;1953.78;Ausztria +3043;Mászó_43;1994;6;0;3469;3366.14;Japán +3044;Mászó_44;1977;8;0;3247;2886.23;Magyarország +3045;Mászó_45;1987;9;0;3642;3277.6;Franciaország +3046;Mászó_46;1979;6;0;3966;2290.62;Franciaország +3047;Mászó_47;2001;3;0;3211;2348.56;Japán +3048;Mászó_48;1982;11;0;2996;3067.84;Magyarország +3049;Mászó_49;1999;7;0;2527;1773.51;Ausztria +3050;Mászó_50;1985;4;0;3880;1875.45;Franciaország +3051;Mászó_51;2008;2;1;4400;3196.72;Ausztria +3052;Mászó_52;1995;11;1;3231;3692.31;Ausztria +3053;Mászó_53;1992;12;0;3789;1546.21;Ausztria +3054;Mászó_54;1981;1;0;3427;3414.05;Franciaország +3055;Mászó_55;2009;4;1;3800;2994.94;USA +3056;Mászó_56;1976;6;1;3843;1625.68;Franciaország +3057;Mászó_57;2008;9;0;4400;3271.53;Olaszország +3058;Mászó_58;2002;1;0;2833;3747.84;USA +3059;Mászó_59;1988;11;1;3331;3568.48;Olaszország +3060;Mászó_60;1977;4;0;4090;3211.0;Magyarország +3061;Mászó_61;2002;8;0;3278;3784.52;Japán +3062;Mászó_62;1978;9;0;3381;1742.76;USA +3063;Mászó_63;1998;4;0;3462;1633.38;Japán +3064;Mászó_64;1987;5;1;3799;2499.18;Japán +3065;Mászó_65;1991;8;1;4147;1824.27;USA +3066;Mászó_66;1976;10;0;3667;3393.93;Japán +3067;Mászó_67;1988;12;1;3212;1875.95;Ausztria +3068;Mászó_68;1993;11;1;3858;3837.14;Japán +3069;Mászó_69;1988;3;1;3612;1825.62;Japán +3070;Mászó_70;2000;12;1;2786;3515.5;Ausztria +3071;Mászó_71;2000;8;0;3533;3887.95;Japán +3072;Mászó_72;2004;5;1;3324;3587.83;Ausztria +3073;Mászó_73;1979;3;0;2893;2997.62;Németország +3074;Mászó_74;2000;10;1;4042;1871.86;Franciaország +3075;Mászó_75;1996;12;1;3780;3345.02;Németország +3076;Mászó_76;2001;12;1;2780;2194.81;Japán +3077;Mászó_77;1996;9;0;3545;2387.79;Németország +3078;Mászó_78;2002;5;0;3996;3342.57;Ausztria +3079;Mászó_79;2010;7;0;4300;3531.28;Németország +3080;Mászó_80;1990;7;0;4144;2748.04;Japán +3081;Mászó_81;2008;9;1;2976;3095.37;Németország +3082;Mászó_82;2005;2;1;3304;1657.42;Ausztria +3083;Mászó_83;2010;1;1;3524;1864.84;Németország +3084;Mászó_84;1984;8;0;2801;1964.58;USA +3085;Mászó_85;1978;2;0;2722;2823.63;Magyarország +3086;Mászó_86;1981;12;0;2898;3054.71;Magyarország +3087;Mászó_87;1983;3;1;2848;3230.96;Franciaország +3088;Mászó_88;1998;2;1;4150;1983.74;Japán +3089;Mászó_89;2004;5;0;2892;1764.69;Magyarország +3090;Mászó_90;1984;5;1;2517;2449.84;Olaszország +3091;Mászó_91;2003;11;1;3419;2056.36;USA +3092;Mászó_92;1981;5;1;3195;3001.22;Olaszország +3093;Mászó_93;1996;1;1;3945;3683.62;USA +3094;Mászó_94;1998;7;1;3257;3521.82;Magyarország +3095;Mászó_95;2006;11;1;3523;3394.41;Ausztria +3096;Mászó_96;1997;1;0;2737;3624.81;USA +3097;Mászó_97;1982;2;1;3415;1920.16;Magyarország +3098;Mászó_98;1988;5;1;3145;3230.61;Franciaország +3099;Mászó_99;1988;2;0;2675;1517.15;Ausztria \ No newline at end of file