added yesterday's work

This commit is contained in:
szabomarton 2024-09-06 09:55:00 +02:00
parent ee16187e24
commit 7d37ac1ade
86 changed files with 2553 additions and 0 deletions

Binary file not shown.

View File

@ -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", "{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F0D1799E-4A3B-4CC3-95D2-BB9DAE843EDD}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ConsoleApp1</RootNamespace>
<AssemblyName>ConsoleApp1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
}
public static void DataRead()
{
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\adatok-utf8.txt";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
string orszag = datas[0];
int terulet = Convert.ToInt32(datas[1]);
int i_nepesseg;
string nepesseg = datas[2];
bool IsNum = Int32.TryParse(nepesseg, out i_nepesseg);
if (!IsNum)
{
nepesseg.Replace("g", "0000");
i_nepesseg = Convert.ToInt32(nepesseg);
}
}
streamReader.Close();
fileStream.Close();
}
}
public static class Data
{
public static List<Orszag> orszagok = new List<Orszag>();
}
public class Orszag
{
public string Orszagnev { get; private set; }
public int Terulet { get; private set; }
public int Nepesseg { get; private set; }
public string Fovaros { get; private set; }
public int FovarosNepesseg { get; private set; }
public bool FovarosiKoncentracio { get; set; }
public Orszag(string orszagnev, int terulet, int nepesseg, string fovaros, int fovarosNepesseg)
{
Orszagnev = orszagnev;
Terulet = terulet;
Nepesseg = nepesseg;
Fovaros = fovaros;
FovarosNepesseg = fovarosNepesseg * 1000;
}
}
}

View File

@ -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("230acbce-f4c9-441e-976c-3bca4e6595d5")]
// 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")]

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

Binary file not shown.

View File

@ -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}") = "Fizetes", "Fizetes\Fizetes.csproj", "{2927D585-DD8D-4010-94C3-F73C3F228ACD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2DB21D78-A314-40EB-8FFC-EEFCB70E4C36}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{2927D585-DD8D-4010-94C3-F73C3F228ACD}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Fizetes</RootNamespace>
<AssemblyName>Fizetes</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,177 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Fizetes
{
class Program
{
static void Main(string[] args)
{
DataRead();
Feladat3();
Feladat4();
Feladat5();
Feladat6();
Feladat7();
Console.ReadLine();
}
public static void Feladat3()
{
Console.WriteLine(Data.munkasok.Count);
}
public static void Feladat4()
{
int atlagber = AtlagBer();
Console.WriteLine($"A 2020-as átlagbérek: {atlagber} ezer Forint");
}
public static int AtlagBer()
{
int dolgozoknum = Data.munkasok.Count;
int dolgozokberSZUM = DolgozokBerSZUM();
return (dolgozokberSZUM / dolgozoknum) / 1000;
}
public static int DolgozokBerSZUM()
{
int szum = 0;
foreach (var item in Data.munkasok)
{
szum += item.Ber;
}
return szum;
}
public static void Feladat5()
{
Console.WriteLine("Kérem a részleg nevét: ");
}
public static void Feladat6()
{
string reszleg = Console.ReadLine();
int legjobbankereso_index = LegjobbanKereso_index(reszleg);
if (legjobbankereso_index == -1)
{
Console.WriteLine("A megadott részleg nem létezik a cégnél!");
}
else
{
Console.WriteLine($"Név: {Data.munkasok[legjobbankereso_index].Nev}");
Console.WriteLine($"Nem: {Data.munkasok[legjobbankereso_index].Nem}");
Console.WriteLine($"Belépés: {Data.munkasok[legjobbankereso_index].Belepes}");
Console.WriteLine($"Bér: {Data.munkasok[legjobbankereso_index].Ber}");
}
}
public static int LegjobbanKereso_index(string reszleg)
{
int legnagyobbBer = 0;
int legnagyobb_index = -1;
for (int i = 0; i < Data.munkasok.Count; i++)
{
if (Data.munkasok[i].Ber > legnagyobbBer && Data.munkasok[i].Reszleg == reszleg)
{
legnagyobbBer = Data.munkasok[i].Ber;
legnagyobb_index = i;
}
}
return legnagyobb_index;
}
public static void Feladat7()
{
List<string> reszlegek = new List<string>();
foreach (var item in Data.munkasok)
{
if (!reszlegek.Contains(item.Reszleg))
{
reszlegek.Add(item.Reszleg);
}
}
int[] reszleg_db = new int[reszlegek.Count];
for (int i = 0; i < reszlegek.Count; i++)
{
for (int j = 0; j < Data.munkasok.Count; j++)
{
if (reszlegek[i] == Data.munkasok[j].Reszleg)
{
reszleg_db[i]++;
}
}
}
for (int i = 0; i < reszlegek.Count; i++)
{
Console.WriteLine($"{reszlegek[i]} - {reszleg_db[i]} Fő");
}
}
public static void DataRead()
{
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\berek2020.txt";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
string nev = datas[0];
string nem = datas[1];
string reszleg = datas[2];
int belepes = Convert.ToInt32(datas[3]);
int ber = Convert.ToInt32(datas[4]);
Munkas munkas = new Munkas(nev, nem, reszleg, belepes, ber);
Data.munkasok.Add(munkas);
line = streamReader.ReadLine();
}
streamReader.Close();
fileStream.Close();
}
}
public static class Data
{
public static List<Munkas> munkasok = new List<Munkas>();
}
public class Munkas
{
public string Nev { get; private set; }
public string Nem { get; private set; }
public string Reszleg { get; private set; }
public int Belepes { get; private set; }
public int Ber { get; private set; }
public Munkas(string nev, string nem, string reszleg, int belepes, int ber)
{
Nev = nev;
Nem = nem;
Reszleg = reszleg;
Belepes = belepes;
Ber = ber;
}
}
}

View File

@ -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("Fizetes")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Fizetes")]
[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("2927d585-dd8d-4010-94c3-f73c3f228acd")]
// 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")]

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1 @@
7f4b213b428f4c013f19137338418ee1f5525793

View File

@ -0,0 +1,7 @@
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\bin\Debug\Fizetes.exe.config
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\bin\Debug\Fizetes.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\bin\Debug\Fizetes.pdb
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\obj\Debug\Fizetes.csproj.AssemblyReference.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\obj\Debug\Fizetes.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\obj\Debug\Fizetes.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\Fizetes\Fizetes\obj\Debug\Fizetes.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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}") = "FizetesGUI", "FizetesGUI\FizetesGUI.csproj", "{FEF2D568-33E0-4126-859F-8056E88F5A06}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FEF2D568-33E0-4126-859F-8056E88F5A06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FEF2D568-33E0-4126-859F-8056E88F5A06}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FEF2D568-33E0-4126-859F-8056E88F5A06}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FEF2D568-33E0-4126-859F-8056E88F5A06}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {22033776-FCFA-4CEB-9A4B-88FA0EDDCC9E}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FEF2D568-33E0-4126-859F-8056E88F5A06}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>FizetesGUI</RootNamespace>
<AssemblyName>FizetesGUI</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,170 @@

namespace FizetesGUI
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.dolgozo_count = new System.Windows.Forms.Label();
this.listBox1 = new System.Windows.Forms.ListBox();
this.atlagber = new System.Windows.Forms.Label();
this.reszleg_label = new System.Windows.Forms.Label();
this.reszleg = new System.Windows.Forms.TextBox();
this.legnagyobbBer = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.listBox2 = new System.Windows.Forms.ListBox();
this.SuspendLayout();
//
// dolgozo_count
//
this.dolgozo_count.AutoSize = true;
this.dolgozo_count.Location = new System.Drawing.Point(12, 19);
this.dolgozo_count.Name = "dolgozo_count";
this.dolgozo_count.Size = new System.Drawing.Size(91, 13);
this.dolgozo_count.TabIndex = 0;
this.dolgozo_count.Text = "Dolgozók száma: ";
this.dolgozo_count.Click += new System.EventHandler(this.label1_Click);
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(154, 19);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(385, 134);
this.listBox1.TabIndex = 1;
//
// atlagber
//
this.atlagber.AutoSize = true;
this.atlagber.Location = new System.Drawing.Point(23, 179);
this.atlagber.Name = "atlagber";
this.atlagber.Size = new System.Drawing.Size(73, 13);
this.atlagber.TabIndex = 2;
this.atlagber.Text = "Bérek átlaga: ";
this.atlagber.Click += new System.EventHandler(this.atlagber_Click);
//
// reszleg_label
//
this.reszleg_label.AutoSize = true;
this.reszleg_label.Location = new System.Drawing.Point(23, 237);
this.reszleg_label.Name = "reszleg_label";
this.reszleg_label.Size = new System.Drawing.Size(75, 13);
this.reszleg_label.TabIndex = 3;
this.reszleg_label.Text = "Részleg neve:";
//
// reszleg
//
this.reszleg.Location = new System.Drawing.Point(196, 237);
this.reszleg.Name = "reszleg";
this.reszleg.Size = new System.Drawing.Size(225, 20);
this.reszleg.TabIndex = 4;
//
// legnagyobbBer
//
this.legnagyobbBer.Location = new System.Drawing.Point(509, 233);
this.legnagyobbBer.Name = "legnagyobbBer";
this.legnagyobbBer.Size = new System.Drawing.Size(221, 23);
this.legnagyobbBer.TabIndex = 5;
this.legnagyobbBer.Text = "legnagyobb bérrel rendelkező dolgozó";
this.legnagyobbBer.UseVisualStyleBackColor = true;
this.legnagyobbBer.Click += new System.EventHandler(this.legnagyobbBer_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(506, 271);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(240, 13);
this.label1.TabIndex = 6;
this.label1.Text = "A legtöbbet kereső dolgozó a megadott részlegen";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(506, 296);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(0, 13);
this.label2.TabIndex = 7;
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(23, 282);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(55, 13);
this.label3.TabIndex = 8;
this.label3.Text = "Statisztika";
//
// listBox2
//
this.listBox2.FormattingEnabled = true;
this.listBox2.Location = new System.Drawing.Point(26, 298);
this.listBox2.Name = "listBox2";
this.listBox2.Size = new System.Drawing.Size(277, 95);
this.listBox2.TabIndex = 9;
//
// 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.listBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.legnagyobbBer);
this.Controls.Add(this.reszleg);
this.Controls.Add(this.reszleg_label);
this.Controls.Add(this.atlagber);
this.Controls.Add(this.listBox1);
this.Controls.Add(this.dolgozo_count);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label dolgozo_count;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label atlagber;
private System.Windows.Forms.Label reszleg_label;
private System.Windows.Forms.TextBox reszleg;
private System.Windows.Forms.Button legnagyobbBer;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ListBox listBox2;
}
}

View File

@ -0,0 +1,237 @@
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 FizetesGUI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
DataRead();
Feladat3();
Feladat4();
Feladat7();
}
private void label1_Click(object sender, EventArgs e)
{
}
public void Feladat3()
{
this.dolgozo_count.Text += $"{Data.munkasok.Count}";
}
public void Feladat4()
{
int atlagber = AtlagBer();
string text = $"Bérek átlaga: {atlagber} ezer Forint";
this.atlagber.Text = text;
}
public static int AtlagBer()
{
int dolgozoknum = Data.munkasok.Count;
int dolgozokberSZUM = DolgozokBerSZUM();
return (dolgozokberSZUM / dolgozoknum) / 1000;
}
public static int DolgozokBerSZUM()
{
int szum = 0;
foreach (var item in Data.munkasok)
{
szum += item.Ber;
}
return szum;
}
public void Feladat6()
{
string reszleg = this.reszleg.Text;
int legjobbankereso_index = LegjobbanKereso_index(reszleg);
string message;
if (legjobbankereso_index == -1)
{
message = "A megadott részleg nem létezik a cégnél!";
}
else
{
message = $"Név: {Data.munkasok[legjobbankereso_index].Nev}\n";
message += $"Nem: {Data.munkasok[legjobbankereso_index].Nem}\n";
message += $"Belépés: {Data.munkasok[legjobbankereso_index].Belepes}\n";
message += $"Bér: {Data.munkasok[legjobbankereso_index].Ber}";
}
label2.Text = message;
}
public int LegjobbanKereso_index(string reszleg)
{
int legnagyobbBer = 0;
int legnagyobb_index = -1;
for (int i = 0; i < Data.munkasok.Count; i++)
{
if (Data.munkasok[i].Ber > legnagyobbBer && Data.munkasok[i].Reszleg == reszleg)
{
legnagyobbBer = Data.munkasok[i].Ber;
legnagyobb_index = i;
}
}
return legnagyobb_index;
}
public void Feladat7()
{
List<string> reszlegek = new List<string>();
foreach (var item in Data.munkasok)
{
if (!reszlegek.Contains(item.Reszleg))
{
reszlegek.Add(item.Reszleg);
}
}
int[] reszleg_db = new int[reszlegek.Count];
for (int i = 0; i < reszlegek.Count; i++)
{
for (int j = 0; j < Data.munkasok.Count; j++)
{
if (reszlegek[i] == Data.munkasok[j].Reszleg)
{
reszleg_db[i]++;
}
}
}
//TODO
for (int i = 0; i < reszlegek.Count; i++)
{
listBox2.Text = $"{reszlegek[i]} - {reszleg_db[i]} Fő";
}
}
public void DataRead()
{
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\berek2020.txt";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
string nev = datas[0];
string nem = datas[1];
string reszleg = datas[2];
int belepes = Convert.ToInt32(datas[3]);
int ber = Convert.ToInt32(datas[4]);
Munkas munkas = new Munkas(nev, nem, reszleg, belepes, ber);
Data.munkasok.Add(munkas);
line = streamReader.ReadLine();
}
streamReader.Close();
fileStream.Close();
}
//label2 = feladat 6 text
private void label2_Click(object sender, EventArgs e)
{
}
private void atlagber_Click(object sender, EventArgs e)
{
}
private void legnagyobbBer_Click(object sender, EventArgs e)
{
Feladat6();
}
}
public static class Data
{
public static List<Munkas> munkasok = new List<Munkas>();
}
public class Munkas
{
public string Nev { get; private set; }
public string Nem { get; private set; }
public string Reszleg { get; private set; }
public int Belepes { get; private set; }
public int Ber { get; private set; }
public Munkas(string nev, string nem, string reszleg, int belepes, int ber)
{
Nev = nev;
Nem = nem;
Reszleg = reszleg;
Belepes = belepes;
Ber = ber;
}
}
}
/*
namespace Fizetes
{
class Program
{
static void Main(string[] args)
{
Feladat6();
Feladat7();
Console.ReadLine();
}
}
}
*/

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FizetesGUI
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -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("FizetesGUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FizetesGUI")]
[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("fef2d568-33e0-4126-859f-8056e88f5a06")]
// 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")]

View File

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FizetesGUI.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// 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()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[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("FizetesGUI.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FizetesGUI.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;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1 @@
8069502011d0681850e57a53d5a1673222f430a6

View File

@ -0,0 +1,10 @@
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\bin\Debug\FizetesGUI.exe.config
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\bin\Debug\FizetesGUI.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\bin\Debug\FizetesGUI.pdb
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.csproj.AssemblyReference.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.Form1.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.Properties.Resources.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.csproj.GenerateResource.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\FizetesGUI\FizetesGUI\obj\Debug\FizetesGUI.pdb

BIN
20240905/Gyakorlás.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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", "{83C67540-D422-4D5C-93E0-1C44D4B035E0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{83C67540-D422-4D5C-93E0-1C44D4B035E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83C67540-D422-4D5C-93E0-1C44D4B035E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83C67540-D422-4D5C-93E0-1C44D4B035E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83C67540-D422-4D5C-93E0-1C44D4B035E0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E0025684-D17D-421A-BB56-EDAB2E59B59A}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,217 @@

namespace WindowsFormsApp1
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.save = new System.Windows.Forms.Button();
this.exit = new System.Windows.Forms.Button();
this.orszag = new System.Windows.Forms.TextBox();
this.terulet = new System.Windows.Forms.TextBox();
this.nepesseg = new System.Windows.Forms.TextBox();
this.fovaros = new System.Windows.Forms.TextBox();
this.fovaros_lakossaga = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F);
this.label1.Location = new System.Drawing.Point(304, 44);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(191, 26);
this.label1.TabIndex = 0;
this.label1.Text = "Új ország felvétele";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label2.Location = new System.Drawing.Point(155, 118);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(64, 20);
this.label2.TabIndex = 1;
this.label2.Text = "Ország:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label3.Location = new System.Drawing.Point(157, 176);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(62, 20);
this.label3.TabIndex = 2;
this.label3.Text = "Terület:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label4.Location = new System.Drawing.Point(134, 231);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(85, 20);
this.label4.TabIndex = 3;
this.label4.Text = "Népesség:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label5.Location = new System.Drawing.Point(149, 288);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(70, 20);
this.label5.TabIndex = 4;
this.label5.Text = "Főváros:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label6.Location = new System.Drawing.Point(73, 344);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(146, 20);
this.label6.TabIndex = 5;
this.label6.Text = "Főváros lakossága:";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label7.Location = new System.Drawing.Point(295, 412);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(216, 20);
this.label7.TabIndex = 6;
this.label7.Text = "Kérem adja meg az adatokat!";
//
// save
//
this.save.Location = new System.Drawing.Point(690, 115);
this.save.Name = "save";
this.save.Size = new System.Drawing.Size(75, 70);
this.save.TabIndex = 7;
this.save.Text = "Mentés";
this.save.UseVisualStyleBackColor = true;
this.save.Click += new System.EventHandler(this.save_Click);
//
// exit
//
this.exit.Location = new System.Drawing.Point(752, 463);
this.exit.Name = "exit";
this.exit.Size = new System.Drawing.Size(75, 29);
this.exit.TabIndex = 8;
this.exit.Text = "Kilépés";
this.exit.UseVisualStyleBackColor = true;
//
// orszag
//
this.orszag.Location = new System.Drawing.Point(256, 120);
this.orszag.Name = "orszag";
this.orszag.Size = new System.Drawing.Size(239, 20);
this.orszag.TabIndex = 9;
//
// terulet
//
this.terulet.Location = new System.Drawing.Point(256, 178);
this.terulet.Name = "terulet";
this.terulet.Size = new System.Drawing.Size(239, 20);
this.terulet.TabIndex = 10;
//
// nepesseg
//
this.nepesseg.Location = new System.Drawing.Point(256, 231);
this.nepesseg.Name = "nepesseg";
this.nepesseg.Size = new System.Drawing.Size(239, 20);
this.nepesseg.TabIndex = 11;
//
// fovaros
//
this.fovaros.Location = new System.Drawing.Point(256, 290);
this.fovaros.Name = "fovaros";
this.fovaros.Size = new System.Drawing.Size(239, 20);
this.fovaros.TabIndex = 12;
//
// fovaros_lakossaga
//
this.fovaros_lakossaga.Location = new System.Drawing.Point(256, 346);
this.fovaros_lakossaga.Name = "fovaros_lakossaga";
this.fovaros_lakossaga.Size = new System.Drawing.Size(239, 20);
this.fovaros_lakossaga.TabIndex = 13;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(839, 504);
this.Controls.Add(this.fovaros_lakossaga);
this.Controls.Add(this.fovaros);
this.Controls.Add(this.nepesseg);
this.Controls.Add(this.terulet);
this.Controls.Add(this.orszag);
this.Controls.Add(this.exit);
this.Controls.Add(this.save);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Button save;
private System.Windows.Forms.Button exit;
private System.Windows.Forms.TextBox orszag;
private System.Windows.Forms.TextBox terulet;
private System.Windows.Forms.TextBox nepesseg;
private System.Windows.Forms.TextBox fovaros;
private System.Windows.Forms.TextBox fovaros_lakossaga;
}
}

View File

@ -0,0 +1,39 @@
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 label1_Click(object sender, EventArgs e)
{
}
private void save_Click(object sender, EventArgs e)
{
string path = "ujadat.txt";
FileStream fileStream = new FileStream(path, FileMode.Create, FileAccess.Write);
StreamWriter streamWriter = new StreamWriter(fileStream);
streamWriter.WriteLine($"{orszag.Text};{terulet.Text};{nepesseg.Text};{fovaros.Text};{fovaros_lakossaga.Text}");
streamWriter.Close();
fileStream.Close();
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -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
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -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("83c67540-d422-4d5c-93e0-1c44d4b035e0")]
// 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")]

View File

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WindowsFormsApp1.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// 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()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[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;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
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;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{83C67540-D422-4D5C-93E0-1C44D4B035E0}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>WindowsFormsApp1</RootNamespace>
<AssemblyName>WindowsFormsApp1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1 @@
ASD;125;200000;DSAD;2587

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1 @@
8069502011d0681850e57a53d5a1673222f430a6

View File

@ -0,0 +1,10 @@
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb

50
20240905/adatok-1250.txt Normal file
View File

@ -0,0 +1,50 @@
Ország;Terület;Népesség;Főváros;Főváros népessége
Görögország;132000;1064g;Athén;3154
Románia;238400;1912g;Bukarest;1812
Ausztria;83900;8960000;Bécs;1915
Lengyelország;312700;3775g;Varsó;1776
Belgium;30500;11590000;Brüsszel;2065
Bulgária;110400;6880000;Szófia;1277
Ciprus;9300;900000;Nicosia;270
Csehország;78900;10510000;Prága;1299
Dánia;42900;5860000;Koppenhága;1334
Észtország;45400;1330000;Tallinn;441
Finnország;336900;5540000;Helsinki;1292
Franciaország;551500;67750000;Párizs;10958
Hollandia;41500;17530000;Amszterdam;1140
Horvátország;56600;3960000;Zágráb;685
Írország;69800;5030000;Dublin;1215
Lettország;64600;1880000;Riga;634
Litvánia;65300;2800000;Vilnius;538
Luxemburg;2600;640000;Luxembourg;120
Magyarország;93000;9710000;Budapest;1764
Málta;300;520000;Valletta;213
Németország;357600;83200000;Berlin;3557
Olaszország;302100;59110000;Róma;4234
Portugália;92200;10330000;Lisszabon;2942
Spanyolország;506000;47420000;Madrid;6559
Svédország;438600;10420000;Stockholm;1608
Szlovákia;49000;5450000;Pozsony;433
Szlovénia;20300;2110000;Ljubljana;287
Egyesült Királyság;244400;67330000;London;9177
Izland;103000;370000;Reykjavík;216
Észak-Macedónia;25700;1950000;Szkopje;590
Montenegró;13900;620000;Podgorica;177
Norvégia;323800;5410000;Osló;1027
Oroszország;17098200;143450000;Moszkva;12476
Svájc;41300;8700000;Bern;426
Szerbia;88400;6830000;Belgrád;1394
Törökország;783600;84150000;Ankara;5018
India;3287300;1393410000;Új-Delhi;29399
Izrael;22100;9360000;Jeruzsálem;919
Japán;377900;125680000;Tokió;37435
Kína;9600000;1412360000;Peking;20036
Koreai Köztársaság;100400;51740000;Szöul;9962
Dél-afrikai Köztársaság;1221000;60040000;Pretoriap;2473
Egyiptom;1002000;104260000;Kairó;20485
Brazília;8510300;213990000;Brasilia;4559
Egyesült Államok;9833500;331890000;Washington, D.C.;5265
Kanada;9984700;38250000;Ottawa;1378
Mexikó;1964400;130260000;Mexikóváros;21672
Ausztrália;7692000;25740000;Canberra;453
Új-Zéland;268100;5120000;Wellington;413

50
20240905/adatok-utf8.txt Normal file
View File

@ -0,0 +1,50 @@
Ország;Terület;Népesség;Főváros;Főváros népessége
Görögország;132000;1064g;Athén;3154
Románia;238400;1912g;Bukarest;1812
Ausztria;83900;8960000;Bécs;1915
Lengyelország;312700;3775g;Varsó;1776
Belgium;30500;11590000;Brüsszel;2065
Bulgária;110400;6880000;Szófia;1277
Ciprus;9300;900000;Nicosia;270
Csehország;78900;10510000;Prága;1299
Dánia;42900;5860000;Koppenhága;1334
Észtország;45400;1330000;Tallinn;441
Finnország;336900;5540000;Helsinki;1292
Franciaország;551500;67750000;Párizs;10958
Hollandia;41500;17530000;Amszterdam;1140
Horvátország;56600;3960000;Zágráb;685
Írország;69800;5030000;Dublin;1215
Lettország;64600;1880000;Riga;634
Litvánia;65300;2800000;Vilnius;538
Luxemburg;2600;640000;Luxembourg;120
Magyarország;93000;9710000;Budapest;1764
Málta;300;520000;Valletta;213
Németország;357600;83200000;Berlin;3557
Olaszország;302100;59110000;Róma;4234
Portugália;92200;10330000;Lisszabon;2942
Spanyolország;506000;47420000;Madrid;6559
Svédország;438600;10420000;Stockholm;1608
Szlovákia;49000;5450000;Pozsony;433
Szlovénia;20300;2110000;Ljubljana;287
Egyesült Királyság;244400;67330000;London;9177
Izland;103000;370000;Reykjavík;216
Észak-Macedónia;25700;1950000;Szkopje;590
Montenegró;13900;620000;Podgorica;177
Norvégia;323800;5410000;Osló;1027
Oroszország;17098200;143450000;Moszkva;12476
Svájc;41300;8700000;Bern;426
Szerbia;88400;6830000;Belgrád;1394
Törökország;783600;84150000;Ankara;5018
India;3287300;1393410000;Új-Delhi;29399
Izrael;22100;9360000;Jeruzsálem;919
Japán;377900;125680000;Tokió;37435
Kína;9600000;1412360000;Peking;20036
Koreai Köztársaság;100400;51740000;Szöul;9962
Dél-afrikai Köztársaság;1221000;60040000;Pretoriap;2473
Egyiptom;1002000;104260000;Kairó;20485
Brazília;8510300;213990000;Brasilia;4559
Egyesült Államok;9833500;331890000;Washington, D.C.;5265
Kanada;9984700;38250000;Ottawa;1378
Mexikó;1964400;130260000;Mexikóváros;21672
Ausztrália;7692000;25740000;Canberra;453
Új-Zéland;268100;5120000;Wellington;413

171
20240905/berek2020.txt Normal file
View File

@ -0,0 +1,171 @@
Név;Neme;Részleg;Belépés;Bér
Beri Dániel;férfi;beszerzés;1979;222943
Csavar Pista;férfi;pénzügy;1995;234074
Lakatos Pál;férfi;beszerzés;1986;159538
Devon Mihály;férfi;asztalosműhely;2007;161533
Él Ilona;nő;beszerzés;1982;299865
Gábor Gizella;nő;értékesítés;2003;181108
Kálvin Ödömér;férfi;lakatosműhely;1976;321959
Kolompár Gáspár;férfi;asztalosműhely;2003;253794
Sörös Sándor;férfi;lakatosműhely;2012;202216
Léc Elek;férfi;asztalosműhely;2001;220506
Vonal Deodát;férfi;beszerzés;1997;187753
Sipos Gábor;férfi;karbantartás;1982;185714
Szigeti Sándor;férfi;karbantartás;1971;315764
Volga Olga;nő;szerelőműhely;2009;197090
Körte Vilmos;férfi;szerelőműhely;2016;256051
Nagy Zoltán;nő;személyzeti;1979;167928
Sunyi Béla;férfi;karbantartás;2010;294523
Tiszai József;férfi;szerelőműhely;2001;305412
Fül Elek;férfi;értékesítés;2017;112590
Puli Sándor;férfi;lakatosműhely;1984;122782
Seres András;férfi;értékesítés;1985;214497
Vígh József;férfi;pénzügy;1986;202335
Alsófalvi Amália;nő;asztalosműhely;2017;130090
Mayer Tamás;férfi;pénzügy;1998;169054
Végh József;férfi;karbantartás;1999;187443
Szokai Kinga;nő;értékesítés;2000;101498
Kondor Katalin;nő;pénzügy;2013;287247
Kovács János;férfi;beszerzés;1993;346023
Fityeházi Ágoston;férfi;személyzeti;2017;306860
Karap Béla;férfi;pénzügy;1974;191443
Pán Péter;férfi;beszerzés;2017;189096
Pintér Sándor;férfi;pénzügy;1977;212158
Sarkadi Csaba;férfi;személyzeti;1992;275338
Horváth Dezső;férfi;pénzügy;1991;338631
Kónya Anett;nő;értékesítés;1992;186852
Pataki Aladár;férfi;szerelőműhely;2003;241873
William Clinton;férfi;karbantartás;2004;285206
Céhes Eszter;nő;pénzügy;2012;296289
Gaz Julianna;nő;értékesítés;2006;131620
Tóth Imre;férfi;asztalosműhely;1988;285381
Higli Jolán;nő;lakatosműhely;1987;170292
Égerházi Zsanett;nő;asztalosműhely;1993;295283
Lakodalom Lajos;férfi;szerelőműhely;1970;229541
Nem Tamás;férfi;karbantartás;2016;220554
Németh Noémi;nő;karbantartás;1983;282454
Kiss Csilla;nő;beszerzés;2009;337231
Lapos Elemér;férfi;lakatosműhely;1972;306860
Szokai Barbara;nő;pénzügy;2013;184629
Károly Zoltán;férfi;értékesítés;1984;139730
Kozlovszky Jenő;férfi;asztalosműhely;2018;248206
Kuti Kamilla;nő;karbantartás;1977;281336
Présinger Tamás;férfi;beszerzés;2001;297147
Szokai Kinga;nő;beszerzés;1979;295981
Kovács Béla;férfi;szerelőműhely;2005;269895
Rizi Gizi;nő;szerelőműhely;2016;343616
Vagyok Ibolya;nő;karbantartás;2000;212096
Dávid Ilona;nő;értékesítés;1970;115651
Turpis Imre;férfi;szerelőműhely;1999;455582
Világi Virág;nő;beszerzés;1999;347147
Gerecsény Eszter;nő;szerelőműhely;1975;260777
Győri Tímea;nő;szerelőműhely;2014;140646
Kiss Ágnes;nő;lakatosműhely;1969;125803
Kovács Helga;nő;pénzügy;1985;325358
Morvay Levente;férfi;személyzeti;2011;476449
Szűcs Gábor;férfi;személyzeti;1975;265928
Varga Dóra;nő;karbantartás;2009;144949
Zsák Judit;nő;pénzügy;2006;222083
Nagy Kálmán;férfi;lakatosműhely;1979;279136
Szalacsi Sándor;férfi;karbantartás;1977;184545
Tavi József;férfi;szerelőműhely;1979;372182
Torgyán Andrea;nő;pénzügy;2015;461167
Bomberra Krisztina;nő;pénzügy;2018;232925
Fehér Jakab;férfi;értékesítés;1973;241893
Szabó Péter;férfi;pénzügy;2010;226231
Torgyán Attila;férfi;szerelőműhely;1987;342561
Kárai Kata;nő;pénzügy;1994;122245
Kötö Irma;nő;lakatosműhely;1990;284049
Nem János;férfi;pénzügy;1990;143081
Presser Gábor;férfi;értékesítés;2016;173758
Szép Kálmán;férfi;szerelőműhely;1986;170663
Azér Lázár;férfi;lakatosműhely;1995;290729
Faragó Viktor;férfi;szerelőműhely;1970;292099
Kicsi Misi;férfi;szerelőműhely;1978;186715
Németh Sára;nő;karbantartás;1985;253524
Polgár Jenő;férfi;karbantartás;1987;264165
Szabó Balázs;férfi;személyzeti;1983;351304
Fritz Attila;férfi;pénzügy;1969;267901
Kodály Zoltán;férfi;értékesítés;1975;482961
Pastinszky Tamás;férfi;személyzeti;2006;325980
Czeczei Zsolt;férfi;beszerzés;1981;452042
Habos Helén;nő;szerelőműhely;2004;264754
Hegedűs Ilona;nő;szerelőműhely;1981;198774
Kecskés Mária;nő;szerelőműhely;1978;149959
Kovács Beáta;nő;személyzeti;2013;386887
Prezma Aurora;nő;pénzügy;1991;137207
Sörös Leopold;férfi;lakatosműhely;1972;329999
Bodor Enikő;nő;pénzügy;2012;274781
Kolompár Frigyes;férfi;lakatosműhely;1978;343403
Makrai Dezső;férfi;szerelőműhely;2016;218725
Morvay Jenő;férfi;pénzügy;1972;297254
Éliás Tóbiás;férfi;pénzügy;1998;303102
Halász Júlia;nő;szerelőműhely;2003;122520
Kiss Borbála;nő;lakatosműhely;1971;159775
Czeczei Zsolt;férfi;pénzügy;2005;386026
Szabó Attila;férfi;karbantartás;2006;211794
Budai Antal;férfi;értékesítés;2017;144107
Dávid Izaura;nő;személyzeti;1989;300039
Horváth Kinga;nő;karbantartás;1969;184889
Mekk Elek Tihamér;férfi;szerelőműhely;1988;268099
Nájt Mihály;férfi;asztalosműhely;2004;344839
Szabó Dénes;férfi;értékesítés;2004;269537
Fritz Géza;férfi;beszerzés;2009;288983
Gomb Sára;nő;pénzügy;1995;313310
Méh Erika;nő;pénzügy;2011;246126
Víz Gizella;nő;pénzügy;2012;104223
Fogarasi Árpád;férfi;karbantartás;1996;307855
Hűtő Béla;férfi;pénzügy;1988;426139
Kiss Rozália;nő;szerelőműhely;1982;248843
Kun Béla;férfi;karbantartás;1969;265384
Lepési Mária;nő;lakatosműhely;2006;227066
Mária Terézia;nő;pénzügy;1987;376465
Balogh Éva;nő;értékesítés;1983;522899
Kapros Lajos;férfi;szerelőműhely;2006;200943
Nehéz Teréz;nő;szerelőműhely;1973;228999
Bán Mihály;férfi;asztalosműhely;1983;191563
Inger Rozália;nő;pénzügy;1989;344391
Magyar Erzsébet;nő;személyzeti;1973;287814
Nagy Gyula;férfi;lakatosműhely;1981;211530
Szabó Éva;nő;karbantartás;2005;182674
Takács Lilla;nő;pénzügy;2002;325866
Czeczei András;férfi;pénzügy;2005;205444
Gép Béla;férfi;pénzügy;1980;277660
Gulág Tóbiás;férfi;beszerzés;2013;109873
Medgyessi Pál;férfi;asztalosműhely;1999;282749
Wesselényi Brúnó;férfi;beszerzés;1975;130108
Alsófalvi Amália;nő;asztalosműhely;1998;343647
Sarkadi Csaba;férfi;pénzügy;1976;230294
Asztal Sándor;férfi;pénzügy;1970;231754
Prézli János;férfi;pénzügy;2016;169183
Brazil Béla;férfi;asztalosműhely;2001;299524
Határ Hugó;férfi;szerelőműhely;1980;256155
Varga Tamás;férfi;karbantartás;1988;213615
Balogh Gábor;férfi;asztalosműhely;1988;193119
Barna Ágota;nő;értékesítés;1985;252032
Béna Béla;férfi;szerelőműhely;1972;186064
Bödön Ödön;férfi;szerelőműhely;1993;166483
Takács Nándor;férfi;beszerzés;2007;343382
Vaal Máté;férfi;pénzügy;1969;220726
Gold Mária;nő;asztalosműhely;1998;286186
Lakatos Lujza;nő;asztalosműhely;2005;316271
Ormosi Teréz;nő;asztalosműhely;1971;104671
Sipos Károly;férfi;karbantartás;2002;278778
Tóth Gyula;férfi;személyzeti;1981;261433
Átlagos Ákos;férfi;szerelőműhely;1983;219531
Fekete Frigyes;férfi;asztalosműhely;1997;130135
Farkas Károly;férfi;lakatosműhely;1995;209343
Nagy Antal;férfi;karbantartás;1986;309611
Oláh Gáspár;férfi;karbantartás;1988;137158
Öregh Amália;nő;személyzeti;2016;315782
Somogyi Erika;nő;karbantartás;2016;193363
Izmos Vilmos;férfi;szerelőműhely;2011;298796
Kovács János;férfi;asztalosműhely;1986;212865
Pokol Petúnia;nő;beszerzés;1973;256368
Bak Dániel;férfi;pénzügy;1983;496106
Fekete Andrea;nő;értékesítés;1989;124880
Gáspár Olga;nő;karbantartás;2010;298381
Ináncsi József;férfi;karbantartás;2001;199721
Szabó András;férfi;beszerzés;2009;269287
Erdős Árpád;férfi;szerelőműhely;2009;220353
Kiss Jenő;férfi;karbantartás;1973;324666

28
20240905/csharp.txt Normal file
View File

@ -0,0 +1,28 @@
class Orszag
{
public string Orszagnev { get; private set; }
public int Terulet { get; private set; }
public int Nepesseg { get; private set; }
public string Fovaros { get; private set; }
public int FovarosNepesseg { get; private set; }
public Orszag(string orszagnev, int terulet, int nepesseg, string fovaros, int fovarosNepesseg)
{
Orszagnev = orszagnev;
Terulet = terulet;
Nepesseg = nepesseg;
Fovaros = fovaros;
FovarosNepesseg = fovarosNepesseg;
}
public Orszag(string sor)
{
// Ebben a konstruktorban is elvégezheti az adatsor felbontását!
// Ha nem ezt választja, akkor törölje ezt a konstruktort!
}
public override string ToString()
{
return "";
}
}