Compare commits
51 Commits
15e2a5bae3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63f7dff9c2 | ||
|
|
c1a5f01a3a | ||
|
|
18b6ad86b2 | ||
|
|
286ea045d5 | ||
|
|
ae3a73d55c | ||
|
|
bbd66b3c1a | ||
|
|
486f343518 | ||
|
|
4644da4212 | ||
|
|
3df13eabe6 | ||
|
|
45866fb212 | ||
|
|
806cec4e0a | ||
|
|
5c776bdac7 | ||
|
|
0c13e46d4a | ||
|
|
2134005486 | ||
|
|
e855b0fa00 | ||
|
|
deb3b3d48f | ||
|
|
16faf57a92 | ||
|
|
4134809662 | ||
|
|
0fc2b5f641 | ||
|
|
21cb07657d | ||
|
|
6c466bc3f4 | ||
|
|
4593dacbef | ||
|
|
bf8fe573a3 | ||
|
|
bfcd5595b1 | ||
|
|
33563aceba | ||
|
|
9239fcb71d | ||
|
|
7a859a9aaf | ||
|
|
553b8ccc94 | ||
|
|
1c5c967ccf | ||
|
|
306c0efbb7 | ||
|
|
b5ae918593 | ||
|
|
affd565abf | ||
|
|
97d51cdc15 | ||
|
|
0a1a02d48b | ||
|
|
630904fdf1 | ||
|
|
d802eb4b67 | ||
|
|
152126ad18 | ||
|
|
db1b67ebf8 | ||
|
|
89f67d62d9 | ||
|
|
ce936f62c7 | ||
|
|
a4c2fd505a | ||
|
|
9d05ca3229 | ||
|
|
5452d2423b | ||
|
|
4e53886e57 | ||
|
|
39090a199e | ||
|
|
e328bf3c49 | ||
|
|
0ff66b2775 | ||
|
|
ae4801ec45 | ||
|
|
6bc4e13d38 | ||
|
|
bcd8982b11 | ||
|
|
a3c88b8404 |
83
2.feladat.txt
Normal file
83
2.feladat.txt
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
1.
|
||||||
|
A devops két szó egyvelege: development, operations.
|
||||||
|
Ez igazából egy szemléletmód vagy praktika amit a mai modern cégek előszeretettel használnak,
|
||||||
|
ugyanis célja hogy a szofter fejlesztése és az üzemeltetése együttműködjön.
|
||||||
|
Ez a szemléletmód kölcsönösen segíti a fejlesztést és az üzemeltetést is,
|
||||||
|
ugyanis a hibákat is könnyebb kijavítani ha gyakran tesztelünk.
|
||||||
|
2.
|
||||||
|
Rövid fejlesztési is kiadási ciklusok: gyors piacra jutás
|
||||||
|
- Manapság fontos az, hogyha van egy ötletünk amiből "kézzel fogható" szoftvert akarunk csinálni,
|
||||||
|
azt mihamarabb kiadjuk, különben mások megelőzhetnek minket,
|
||||||
|
ami pénzkiesést jelenthet egy kisebb vagy akár egy nagyobb cégnek is.
|
||||||
|
|
||||||
|
Automatizált fejlesztés, tesztelés és telepítés
|
||||||
|
- Ezek a fejlesztési technikák segítik elő a gyorsabb piacrajutást.
|
||||||
|
|
||||||
|
Hibák gyorsabb felfedezése, helyreállítás idejének javítása
|
||||||
|
- Ha a "kész" szoftverben a felhasználók hibát találnak,
|
||||||
|
de azt a fejlesztői csapat gyorsan kijavítja akkor a szoftver értéke és megbízhatósága nő,
|
||||||
|
ami növeli a cég értékét is.
|
||||||
|
A nap végén minden cégnek csak az számít hogy hogyan tud minél rövidebb idő alatt minél több pénzt keresni,
|
||||||
|
ezért is fontos a fejlesztés sebessége, a hibák minimalizálásával.
|
||||||
|
|
||||||
|
Monitorozás: Jelentések, metrikák és logok biztosítása
|
||||||
|
-Fontos a felhasználók monitorozása a jövőbeli hibák elkerülése érdekében.
|
||||||
|
Könnyedén lehetséges olyan elem a szoftverben ami a későbbiekben szűk keresztmetszet lehet,
|
||||||
|
monitorozással ezek a problémák felderülnek, és ki lehet azokat javítani mielőtt ténylegesen felmerülnének.
|
||||||
|
|
||||||
|
Rugalmasság: Felhasználói igények folyamatos kiszolgálása, piaci versenyhez igazodás
|
||||||
|
-Minél jobban addiktív egy szoftver annál több pénzt lehet a felhasználókból kicsikarni.
|
||||||
|
Minden cég számára fontos, hogy a felhasználói megelégedettek legyenek az általuk értékesített termékkel.
|
||||||
|
|
||||||
|
Folyamatos fejlődés és tanulás
|
||||||
|
- Egybefügg a rugalmassággal, tanulni kell a csapat hibáiból, a felhasználó igényeire kell fejleszteni a szoftvert.
|
||||||
|
|
||||||
|
Továbbá fontos a csapatmunka is a devops szemléletben ugyanis a nagyvállalati szoftvereket nem egyetlen ember írja.
|
||||||
|
3.
|
||||||
|
A megrendelésre elkészült szoftvereket továbbították a megrendelőnek,
|
||||||
|
akinek önerőből kellett üzemeltetnie az alkalmazást.
|
||||||
|
Ehhez kellett valaki aki ért az üzemeltetéshez, kiépíti a futtatási környezetet a cégen belül.
|
||||||
|
|
||||||
|
Ezzel szemben a devops ezt megkönnyíti, ugyanis a devops célja az is hogy az üzemeltetést is megkönnyítse.
|
||||||
|
A fejlesztők létrehoznak egy konténert ami minden speciális futtatási környezeti változót tartalmaz,
|
||||||
|
így gyakorlatilag csak futtatnia kell a megrendelőnek a konténert és máris elérhető a szoftver a felhasználók számára.
|
||||||
|
4.
|
||||||
|
Az agilis módszertan a vevő/felhasználó és a fejlesztő között teremt kapcsolatot.
|
||||||
|
Fontos a folyamatos kommunikáció a két fél között a hibák elkerülése érdekében.
|
||||||
|
|
||||||
|
A devops ugyan ezen az elven működik csak a kommunikáció a fejlesztő és az üzemeltető között zajlik le.
|
||||||
|
Gyakorlatilag ha a fejlesztési kapcsolatok egy hárompontú gráffal lenne jellemezve,
|
||||||
|
akkor az agilis felelne meg az egyik élnek, a devops a másiknak.
|
||||||
|
|
||||||
|
agilis devops
|
||||||
|
megrendelő <------> fejlesztő <-------> üzemeltető
|
||||||
|
|
||||||
|
5.
|
||||||
|
A pipeline hasonlóan működik a devopsban mint a bash scriptben.
|
||||||
|
Ha egy folyamat kész annak a végterméke lesz a következő folyamat alapállapota.
|
||||||
|
Igazából csak egy soros végrehajtást ír le amit követni kell.
|
||||||
|
Végigvezeti a fejlesztőt a kezdeti kódtól egészen a kész szoftverig.
|
||||||
|
A következő képpen néz ki a pipeline:
|
||||||
|
Code -> Build -> Test -> Release -> Deploy -> Monitoring
|
||||||
|
|
||||||
|
Két részre osztható:
|
||||||
|
CI (Folyamatos integráció)
|
||||||
|
célja a kód továbbépítése a projektbe.
|
||||||
|
megvalósítás:
|
||||||
|
folyamatos verziókövetés
|
||||||
|
ci eszköz automatikusan buildel
|
||||||
|
unit illetve integrációs tesztek
|
||||||
|
dokumentálás
|
||||||
|
|
||||||
|
CD (Folyamatos szállítás)
|
||||||
|
célja az agilis rendszer fenntartása.
|
||||||
|
Ha hiba van a szoftverben jó ha hamar kiderül.
|
||||||
|
Ha jó a változtatás akkor meg a felhasználók örülhetnek az új featurenek.
|
||||||
|
megvalósítás
|
||||||
|
build átvétele
|
||||||
|
csomag készítése
|
||||||
|
verzió megjelölése
|
||||||
|
átfogóbb tesztek végzése
|
||||||
|
tesztkörnyezetbe való telepítés és tesztelés
|
||||||
|
éles telepítés
|
||||||
|
monitorozás
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,12 +1,24 @@
|
|||||||
DataRead();
|
using System.IO;
|
||||||
|
|
||||||
|
DataRead();
|
||||||
Varos legmelegebb = Legmelegebb();
|
Varos legmelegebb = Legmelegebb();
|
||||||
Console.WriteLine($"{legmelegebb.Nev} {legmelegebb.Homerseklet}");
|
Console.WriteLine($"Legmelegebb: {legmelegebb.Nev} {legmelegebb.Homerseklet}");
|
||||||
Varos leghidegebb = Leghidegebb();
|
Varos leghidegebb = Leghidegebb();
|
||||||
Console.WriteLine($"{leghidegebb.Nev} {leghidegebb.Homerseklet}");
|
Console.WriteLine($"Leghidegebb: {leghidegebb.Nev} {leghidegebb.Homerseklet}");
|
||||||
double atlag = Atlag();
|
double atlag = Atlag();
|
||||||
Console.WriteLine($"Átlag hőmérséklet: {atlag:F2}");
|
Console.WriteLine($"Átlag hőmérséklet: {atlag:F2}");
|
||||||
//list városok where homerseklet > 20
|
//list városok where homerseklet > 20
|
||||||
|
Console.WriteLine("20°C-nál melegebb városok:");
|
||||||
|
foreach (var item in Meleg())
|
||||||
|
{
|
||||||
|
Console.WriteLine($"\t{item.Nev}: {item.Homerseklet}°C");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static IEnumerable<Varos> Meleg()
|
||||||
|
{
|
||||||
|
return Data.varosok.Where(x => x.Homerseklet > 20);
|
||||||
|
}
|
||||||
static double Atlag()
|
static double Atlag()
|
||||||
{
|
{
|
||||||
return Data.varosok.Average(x => x.Homerseklet);
|
return Data.varosok.Average(x => x.Homerseklet);
|
||||||
@@ -26,7 +38,7 @@ static Varos Legmelegebb()
|
|||||||
|
|
||||||
static void DataRead()
|
static void DataRead()
|
||||||
{
|
{
|
||||||
string path = "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\varosok.txt";
|
string path = "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\bin\\Debug\\varosok.txt";
|
||||||
using (StreamReader streamReader = new StreamReader(path))
|
using (StreamReader streamReader = new StreamReader(path))
|
||||||
{
|
{
|
||||||
string line = streamReader.ReadLine();
|
string line = streamReader.ReadLine();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
18
20240920/ConsoleApp2/ConsoleApp2/bin/Debug/varosok.txt
Normal file
18
20240920/ConsoleApp2/ConsoleApp2/bin/Debug/varosok.txt
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
Város,Hőmérséklet
|
||||||
|
Budapest,22
|
||||||
|
Debrecen,19
|
||||||
|
Szeged,24
|
||||||
|
Pécs,21
|
||||||
|
Győr,18
|
||||||
|
Székesfehérvár,20
|
||||||
|
Miskolc,17
|
||||||
|
Nyíregyháza,16
|
||||||
|
Kecskemét,23
|
||||||
|
Zalaegerszeg,18
|
||||||
|
Tatabánya,20
|
||||||
|
Sopron,19
|
||||||
|
Szombathely,22
|
||||||
|
Békéscsaba,21
|
||||||
|
Érd,20
|
||||||
|
Siófok,25
|
||||||
|
Kaposvár,17
|
||||||
@@ -1,20 +1,24 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj": {}
|
"E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj": {
|
"E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
"projectUniqueName": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||||
"projectName": "ConsoleApp2",
|
"projectName": "ConsoleApp2",
|
||||||
"projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
"projectPath": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||||
"packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\Marci\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\obj\\",
|
"outputPath": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\Marci\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
@@ -34,11 +38,6 @@
|
|||||||
"warnAsError": [
|
"warnAsError": [
|
||||||
"NU1605"
|
"NU1605"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"restoreAuditProperties": {
|
|
||||||
"enableAudit": "true",
|
|
||||||
"auditLevel": "low",
|
|
||||||
"auditMode": "direct"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
@@ -60,7 +59,7 @@
|
|||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.101/PortableRuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,12 @@
|
|||||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\szabomarton\.nuget\packages\</NuGetPackageFolders>
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Marci\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
<SourceRoot Include="C:\Users\szabomarton\.nuget\packages\" />
|
<SourceRoot Include="C:\Users\Marci\.nuget\packages\" />
|
||||||
|
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp2")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp2")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+82fc6b674fd1265407cef9381f915f8fb7df93c7")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bcd8982b112f9605eade8cd33e48b41d42ac5983")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp2")]
|
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp2")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp2")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp2")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
689549fe51d153fc5f381a183ba624cac369dd48a7be85a2b1c61abb3a853dc8
|
5debd365cc6b6201116e6fc75a0c07e73ebf2a38c98dada38c2c585506d1ce81
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = ConsoleApp2
|
build_property.RootNamespace = ConsoleApp2
|
||||||
build_property.ProjectDir = C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\
|
build_property.ProjectDir = E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\
|
||||||
build_property.EnableComHosting =
|
build_property.EnableComHosting =
|
||||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
18ad58a4a862825168fc500f7f1e04509977c1e3da94c2a4ab1f91d365d5f40b
|
e88c81800167b70be5646af32175f3492a72f79ac4ecb1b53733095c9c575f8e
|
||||||
|
|||||||
@@ -12,3 +12,17 @@ C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\De
|
|||||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.pdb
|
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.genruntimeconfig.cache
|
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.genruntimeconfig.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ref\ConsoleApp2.dll
|
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ref\ConsoleApp2.dll
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.exe
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.deps.json
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.runtimeconfig.json
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.dll
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.pdb
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.AssemblyInfoInputs.cache
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.AssemblyInfo.cs
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.csproj.CoreCompileInputs.cache
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.dll
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\refint\ConsoleApp2.dll
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.pdb
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.genruntimeconfig.cache
|
||||||
|
E:\Házi\Programozás\C#\Suli\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ref\ConsoleApp2.dll
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
2629f07ba15577b1c9eed9ff991ca0c682fb80978d3abeb885542c641f6e96ba
|
137e08034fd950d103bffaaf2c3e3adbb1dc5b2844f335009417af2edf3c7416
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,19 +8,24 @@
|
|||||||
"net8.0": []
|
"net8.0": []
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
"C:\\Users\\szabomarton\\.nuget\\packages\\": {}
|
"C:\\Users\\Marci\\.nuget\\packages\\": {},
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||||
},
|
},
|
||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
"projectUniqueName": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||||
"projectName": "ConsoleApp2",
|
"projectName": "ConsoleApp2",
|
||||||
"projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
"projectPath": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||||
"packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\Marci\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\obj\\",
|
"outputPath": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
|
"fallbackFolders": [
|
||||||
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
],
|
||||||
"configFilePaths": [
|
"configFilePaths": [
|
||||||
"C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
"C:\\Users\\Marci\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||||
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
@@ -40,11 +45,6 @@
|
|||||||
"warnAsError": [
|
"warnAsError": [
|
||||||
"NU1605"
|
"NU1605"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"restoreAuditProperties": {
|
|
||||||
"enableAudit": "true",
|
|
||||||
"auditLevel": "low",
|
|
||||||
"auditMode": "direct"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
"privateAssets": "all"
|
"privateAssets": "all"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.101/PortableRuntimeIdentifierGraph.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "0sx9Yfcwk0I=",
|
"dgSpecHash": "fYLlihRverYZYMGoyNOpw1xVqw87ZL33gw2pK0lCELwi60FtP+kgPwZbr6JPyD74LRVpQ5ocO0DCfxIuPp24Eg==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
"projectFilePath": "E:\\Házi\\Programozás\\C#\\Suli\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||||
"expectedPackageFiles": [],
|
"expectedPackageFiles": [],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
||||||
Binary file not shown.
BIN
20240925/Bejelentes/.vs/Bejelentes/v17/.suo
Normal file
BIN
20240925/Bejelentes/.vs/Bejelentes/v17/.suo
Normal file
Binary file not shown.
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\Bejelentes\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}|Bejelentes\\Bejelentes.csproj|c:\\users\\szabomarton\\desktop\\progaora\\20240925\\bejelentes\\bejelentes\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}|Bejelentes\\Bejelentes.csproj|solutionrelative:bejelentes\\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\\ProgaOra\\20240925\\Bejelentes\\Bejelentes\\Program.cs",
|
||||||
|
"RelativeDocumentMoniker": "Bejelentes\\Program.cs",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\Bejelentes\\Bejelentes\\Program.cs",
|
||||||
|
"RelativeToolTip": "Bejelentes\\Program.cs",
|
||||||
|
"ViewState": "AgIAAFAAAAAAAAAAAAAcwF0AAAANAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-09-25T10:09:45.632Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
37
20240925/Bejelentes/.vs/Bejelentes/v17/DocumentLayout.json
Normal file
37
20240925/Bejelentes/.vs/Bejelentes/v17/DocumentLayout.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\Bejelentes\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}|Bejelentes\\Bejelentes.csproj|c:\\users\\szabomarton\\desktop\\progaora\\20240925\\bejelentes\\bejelentes\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}|Bejelentes\\Bejelentes.csproj|solutionrelative:bejelentes\\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\\ProgaOra\\20240925\\Bejelentes\\Bejelentes\\Program.cs",
|
||||||
|
"RelativeDocumentMoniker": "Bejelentes\\Program.cs",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\Bejelentes\\Bejelentes\\Program.cs",
|
||||||
|
"RelativeToolTip": "Bejelentes\\Program.cs",
|
||||||
|
"ViewState": "AgIAAFAAAAAAAAAAAAAcwF0AAAANAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-09-25T10:09:45.632Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
25
20240925/Bejelentes/Bejelentes.sln
Normal file
25
20240925/Bejelentes/Bejelentes.sln
Normal file
@@ -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}") = "Bejelentes", "Bejelentes\Bejelentes.csproj", "{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {C08961FD-222F-4556-822E-36468238DE52}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
6
20240925/Bejelentes/Bejelentes/App.config
Normal file
6
20240925/Bejelentes/Bejelentes/App.config
Normal 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>
|
||||||
53
20240925/Bejelentes/Bejelentes/Bejelentes.csproj
Normal file
53
20240925/Bejelentes/Bejelentes/Bejelentes.csproj
Normal 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>{2FDC7F8B-372B-4BC7-9971-6FE3E62849B0}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>Bejelentes</RootNamespace>
|
||||||
|
<AssemblyName>Bejelentes</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>
|
||||||
97
20240925/Bejelentes/Bejelentes/Program.cs
Normal file
97
20240925/Bejelentes/Bejelentes/Program.cs
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Bejelentes
|
||||||
|
{
|
||||||
|
public class Bejelentes
|
||||||
|
{
|
||||||
|
public DateTime idopont;
|
||||||
|
public string prioritas;
|
||||||
|
public string stausz;
|
||||||
|
|
||||||
|
public Bejelentes(DateTime Idopont, string Prioritas, string Statusz) {
|
||||||
|
idopont = Idopont;
|
||||||
|
prioritas = Prioritas;
|
||||||
|
stausz = Statusz;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Data
|
||||||
|
{
|
||||||
|
public static List<Bejelentes> Bejelentesek = new List<Bejelentes>();
|
||||||
|
}
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
string path = "bejelentes.csv";
|
||||||
|
DataRead(path);
|
||||||
|
AFeladat();
|
||||||
|
BFeladat();
|
||||||
|
CFeladat();
|
||||||
|
Console.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void BFeladat()
|
||||||
|
{
|
||||||
|
int megoldott = (from elem in Data.Bejelentesek
|
||||||
|
where elem.stausz == "Megoldott"
|
||||||
|
select elem).Count();
|
||||||
|
|
||||||
|
int fuggoben = (from elem in Data.Bejelentesek
|
||||||
|
where elem.stausz == "Függőben"
|
||||||
|
select elem).Count();
|
||||||
|
|
||||||
|
Console.WriteLine($"Megoldottak száma: {megoldott}");
|
||||||
|
Console.WriteLine($"Függőben lévők száma: {fuggoben}");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static void CFeladat()
|
||||||
|
{
|
||||||
|
Bejelentes legregebbi_fuggo = Data.Bejelentesek.OrderBy(x => x.idopont).Where(x => x.stausz == "Függőben").Take(1).ToList()[0];
|
||||||
|
Console.WriteLine($"A legrégebbi függőben lévő jegy: {legregebbi_fuggo.idopont},{legregebbi_fuggo.prioritas},{legregebbi_fuggo.stausz}");
|
||||||
|
|
||||||
|
Bejelentes leghamarabb_megoldott = Data.Bejelentesek.OrderBy(x => x.idopont).Where(x => x.stausz == "Megoldott").Take(1).ToList()[0];
|
||||||
|
Console.WriteLine($"A leghamarabb megoldott probléma: {leghamarabb_megoldott.idopont},{leghamarabb_megoldott.prioritas}, {leghamarabb_megoldott.stausz}");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void AFeladat()
|
||||||
|
{
|
||||||
|
int magas = Data.Bejelentesek.Where(x=>x.prioritas == "Magas").Count();
|
||||||
|
int kozepes = Data.Bejelentesek.Where(x => x.prioritas == "Közepes").Count();
|
||||||
|
int alacsony = Data.Bejelentesek.Where(x => x.prioritas == "Alacsony").Count();
|
||||||
|
|
||||||
|
Console.WriteLine($"Az alacsony prioritásúak száma: {alacsony}");
|
||||||
|
Console.WriteLine($"A közepes prioritásúak száma: {kozepes}");
|
||||||
|
Console.WriteLine($"A magas prioritásúak száma: {magas}");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DataRead(string path)
|
||||||
|
{
|
||||||
|
using (StreamReader streamReader = new StreamReader(path))
|
||||||
|
{
|
||||||
|
string line = streamReader.ReadLine();
|
||||||
|
line = streamReader.ReadLine();
|
||||||
|
|
||||||
|
while (line != null)
|
||||||
|
{
|
||||||
|
string[] strings = line.Split(';');
|
||||||
|
DateTime idopont = Convert.ToDateTime(strings[0]);
|
||||||
|
Bejelentes bejelentes = new Bejelentes(idopont, strings[1], strings[2]);
|
||||||
|
Data.Bejelentesek.Add(bejelentes);
|
||||||
|
line = streamReader.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
streamReader.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
33
20240925/Bejelentes/Bejelentes/Properties/AssemblyInfo.cs
Normal file
33
20240925/Bejelentes/Bejelentes/Properties/AssemblyInfo.cs
Normal file
@@ -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("Bejelentes")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("Bejelentes")]
|
||||||
|
[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("2fdc7f8b-372b-4bc7-9971-6fe3e62849b0")]
|
||||||
|
|
||||||
|
// 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")]
|
||||||
BIN
20240925/Bejelentes/Bejelentes/bin/Debug/Bejelentes.exe
Normal file
BIN
20240925/Bejelentes/Bejelentes/bin/Debug/Bejelentes.exe
Normal file
Binary file not shown.
@@ -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>
|
||||||
BIN
20240925/Bejelentes/Bejelentes/bin/Debug/Bejelentes.pdb
Normal file
BIN
20240925/Bejelentes/Bejelentes/bin/Debug/Bejelentes.pdb
Normal file
Binary file not shown.
16
20240925/Bejelentes/Bejelentes/bin/Debug/bejelentes.csv
Normal file
16
20240925/Bejelentes/Bejelentes/bin/Debug/bejelentes.csv
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Időpont;Prioritás;Státusz
|
||||||
|
2024.01.01 8:45;Magas;Megoldott
|
||||||
|
2024.01.01 10:12;Közepes;Függőben
|
||||||
|
2024.01.01 11:20;Alacsony;Megoldott
|
||||||
|
2024.01.02 9:30;Magas;Függőben
|
||||||
|
2024.01.02 11:45;Közepes;Függőben
|
||||||
|
2024.01.03 12:15;Alacsony;Függőben
|
||||||
|
2024.01.03 14:00;Magas;Megoldott
|
||||||
|
2024.01.04 16:30;Közepes;Megoldott
|
||||||
|
2024.02.10 10:45;Magas;Függőben
|
||||||
|
2024.02.11 12:20;Alacsony;Függőben
|
||||||
|
2024.02.12 9:50;Közepes;Megoldott
|
||||||
|
2024.02.13 11:40;Magas;Függőben
|
||||||
|
2024.02.14 14:30;Alacsony;Függőben
|
||||||
|
2024.02.15 8:15;Közepes;Megoldott
|
||||||
|
2024.02.16 15:00;Magas;Függőben
|
||||||
|
@@ -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.
@@ -0,0 +1 @@
|
|||||||
|
137ddb1975586287657f37337b64d051167bb6a147915d9fb5b8eb94b1093509
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\bin\Debug\Bejelentes.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\bin\Debug\Bejelentes.exe
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\bin\Debug\Bejelentes.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\obj\Debug\Bejelentes.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\obj\Debug\Bejelentes.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\obj\Debug\Bejelentes.exe
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\Bejelentes\Bejelentes\obj\Debug\Bejelentes.pdb
|
||||||
BIN
20240925/Bejelentes/Bejelentes/obj/Debug/Bejelentes.exe
Normal file
BIN
20240925/Bejelentes/Bejelentes/obj/Debug/Bejelentes.exe
Normal file
Binary file not shown.
BIN
20240925/Bejelentes/Bejelentes/obj/Debug/Bejelentes.pdb
Normal file
BIN
20240925/Bejelentes/Bejelentes/obj/Debug/Bejelentes.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
20240925/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
Normal file
BIN
20240925/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
Normal file
Binary file not shown.
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\ConsoleApp1\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\progaora\\20240925\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}|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\\ProgaOra\\20240925\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||||
|
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||||
|
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||||
|
"ViewState": "AgIAAB8AAAAAAAAAAAAAAB8AAAAAAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-09-25T09:45:22.518Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
37
20240925/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
Normal file
37
20240925/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\ConsoleApp1\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\progaora\\20240925\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}|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\\ProgaOra\\20240925\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||||
|
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||||
|
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||||
|
"ViewState": "AgIAAEQAAAAAAAAAAAAYwFsAAAAJAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-09-25T09:45:22.518Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
25
20240925/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20240925/ConsoleApp1/ConsoleApp1.sln
Normal file
@@ -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", "{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {524E68F2-2E7F-458C-AC61-0C5CF75CEE3A}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
6
20240925/ConsoleApp1/ConsoleApp1/App.config
Normal file
6
20240925/ConsoleApp1/ConsoleApp1/App.config
Normal 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>
|
||||||
53
20240925/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20240925/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal 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>{4E5245C6-30FA-4CB2-8FE6-E1E8D8DF07A8}</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>
|
||||||
94
20240925/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
94
20240925/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.IO;
|
||||||
|
using System.ComponentModel;
|
||||||
|
|
||||||
|
namespace ConsoleApp1
|
||||||
|
{
|
||||||
|
public static class Data
|
||||||
|
{
|
||||||
|
public static List<Konyv> Konyvek = new List<Konyv>();
|
||||||
|
}
|
||||||
|
public class Konyv
|
||||||
|
{
|
||||||
|
public string cim;
|
||||||
|
public string szerzo;
|
||||||
|
public int ar;
|
||||||
|
public Konyv(string Cim, string Szerzo, int Ar) {
|
||||||
|
cim = Cim;
|
||||||
|
szerzo = Szerzo;
|
||||||
|
ar = Ar;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
string filepath = "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240925\\konyvek.csv";
|
||||||
|
DataRead(filepath);
|
||||||
|
AFeladat();
|
||||||
|
BFeladat();
|
||||||
|
CFeladat();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void CFeladat()
|
||||||
|
{
|
||||||
|
List<Konyv> legdragabbak = Legdragabbak(Data.Konyvek);
|
||||||
|
Console.WriteLine("A legdrágább könyvek a következők:");
|
||||||
|
foreach (var item in legdragabbak)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"\t{item.cim}, {item.ar}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static List<Konyv> Legdragabbak(List<Konyv> konyvek)
|
||||||
|
{
|
||||||
|
return konyvek.OrderByDescending(x => x.ar).Take(5).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void BFeladat()
|
||||||
|
{
|
||||||
|
int num = Ketezerfelettiek(Data.Konyvek);
|
||||||
|
Console.WriteLine($"A kétezer forint fölötti könyvek száma: {num}");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int Ketezerfelettiek(List<Konyv> konyvek)
|
||||||
|
{
|
||||||
|
return konyvek.Where(x => x.ar > 2000).Count();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void AFeladat()
|
||||||
|
{
|
||||||
|
Console.WriteLine("A könyvtár tartalma: ");
|
||||||
|
foreach (var item in Data.Konyvek)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"\t{item.cim}, {item.szerzo}, {item.ar}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void DataRead(string path)
|
||||||
|
{
|
||||||
|
using (StreamReader streamReader = new StreamReader(path))
|
||||||
|
{
|
||||||
|
string line = streamReader.ReadLine();
|
||||||
|
line = streamReader.ReadLine();
|
||||||
|
|
||||||
|
while (line != null)
|
||||||
|
{
|
||||||
|
string[] strings = line.Split(';');
|
||||||
|
int ar = Int32.Parse(strings[2]);
|
||||||
|
Konyv konyv = new Konyv(strings[0], strings[1], ar);
|
||||||
|
Data.Konyvek.Add(konyv);
|
||||||
|
line = streamReader.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
streamReader.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
33
20240925/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
33
20240925/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
@@ -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 © 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("4e5245c6-30fa-4cb2-8fe6-e1e8d8df07a8")]
|
||||||
|
|
||||||
|
// 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")]
|
||||||
BIN
20240925/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
BIN
20240925/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
@@ -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>
|
||||||
BIN
20240925/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
BIN
20240925/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
@@ -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.
@@ -0,0 +1 @@
|
|||||||
|
137ddb1975586287657f37337b64d051167bb6a147915d9fb5b8eb94b1093509
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
|
C:\Users\szabomarton\Desktop\ProgaOra\20240925\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
BIN
20240925/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
BIN
20240925/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
BIN
20240925/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
BIN
20240925/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
Binary file not shown.
17
20240925/konyvek.csv
Normal file
17
20240925/konyvek.csv
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
Cím;Szerző;Ár
|
||||||
|
Az arany ember;Jókai Mór;1000
|
||||||
|
Egri csillagok;Gárdonyi Géza;1500
|
||||||
|
Pál utcai fiúk;Molnár Ferenc;2000
|
||||||
|
Tüskevár;Fekete István;2500
|
||||||
|
A kőszívű ember fiai;Jókai Mór;3000
|
||||||
|
Légy jó mindhalálig;Móricz Zsigmond;1200
|
||||||
|
Sorstalanság;Kertész Imre;1800
|
||||||
|
Ábel a rengetegben;Tamási Áron;2200
|
||||||
|
Rokonok;Móricz Zsigmond;2400
|
||||||
|
Az ötödik pecsét;Sánta Ferenc;1400
|
||||||
|
Idő van;Örkény István;1600
|
||||||
|
A Pál utcai fiúk;Molnár Ferenc;1900
|
||||||
|
Csillagok háborúja;Lucas George;2500
|
||||||
|
1984;Orwell George;2600
|
||||||
|
Száz év magány;Garcia Marquez;2800
|
||||||
|
Harry Potter és a bölcsek köve;Rowling J.K.;3500
|
||||||
|
BIN
20241011/WpfApp1/.vs/ProjectEvaluation/wpfapp1.metadata.v9.bin
Normal file
BIN
20241011/WpfApp1/.vs/ProjectEvaluation/wpfapp1.metadata.v9.bin
Normal file
Binary file not shown.
BIN
20241011/WpfApp1/.vs/ProjectEvaluation/wpfapp1.projects.v9.bin
Normal file
BIN
20241011/WpfApp1/.vs/ProjectEvaluation/wpfapp1.projects.v9.bin
Normal file
Binary file not shown.
BIN
20241011/WpfApp1/.vs/ProjectEvaluation/wpfapp1.strings.v9.bin
Normal file
BIN
20241011/WpfApp1/.vs/ProjectEvaluation/wpfapp1.strings.v9.bin
Normal file
Binary file not shown.
BIN
20241011/WpfApp1/.vs/WpfApp1/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
20241011/WpfApp1/.vs/WpfApp1/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
20241011/WpfApp1/.vs/WpfApp1/v17/.futdcache.v2
Normal file
BIN
20241011/WpfApp1/.vs/WpfApp1/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
20241011/WpfApp1/.vs/WpfApp1/v17/.suo
Normal file
BIN
20241011/WpfApp1/.vs/WpfApp1/v17/.suo
Normal file
Binary file not shown.
57
20241011/WpfApp1/.vs/WpfApp1/v17/DocumentLayout.backup.json
Normal file
57
20241011/WpfApp1/.vs/WpfApp1/v17/DocumentLayout.backup.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20241011\\wpfapp1\\wpfapp1\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
|
||||||
|
"RelativeMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|solutionrelative:wpfapp1\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20241011\\wpfapp1\\wpfapp1\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|solutionrelative:wpfapp1\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 1,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Bookmark",
|
||||||
|
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "MainWindow.xaml",
|
||||||
|
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml",
|
||||||
|
"RelativeDocumentMoniker": "WpfApp1\\MainWindow.xaml",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml",
|
||||||
|
"RelativeToolTip": "WpfApp1\\MainWindow.xaml",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
||||||
|
"WhenOpened": "2024-10-11T07:48:50.778Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "MainWindow.xaml.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"RelativeDocumentMoniker": "WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"RelativeToolTip": "WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-10-11T07:48:25.807Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
57
20241011/WpfApp1/.vs/WpfApp1/v17/DocumentLayout.json
Normal file
57
20241011/WpfApp1/.vs/WpfApp1/v17/DocumentLayout.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20241011\\wpfapp1\\wpfapp1\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
|
||||||
|
"RelativeMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|solutionrelative:wpfapp1\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20241011\\wpfapp1\\wpfapp1\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{2ECBE568-A045-42A4-98F1-27DECCAF9E07}|WpfApp1\\WpfApp1.csproj|solutionrelative:wpfapp1\\mainwindow.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 1,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Bookmark",
|
||||||
|
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "MainWindow.xaml",
|
||||||
|
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml",
|
||||||
|
"RelativeDocumentMoniker": "WpfApp1\\MainWindow.xaml",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml",
|
||||||
|
"RelativeToolTip": "WpfApp1\\MainWindow.xaml",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
||||||
|
"WhenOpened": "2024-10-11T07:48:50.778Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "MainWindow.xaml.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"RelativeDocumentMoniker": "WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20241011\\WpfApp1\\WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"RelativeToolTip": "WpfApp1\\MainWindow.xaml.cs",
|
||||||
|
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-10-11T07:48:25.807Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
25
20241011/WpfApp1/WpfApp1.sln
Normal file
25
20241011/WpfApp1/WpfApp1.sln
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.11.35303.130
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfApp1", "WpfApp1\WpfApp1.csproj", "{2ECBE568-A045-42A4-98F1-27DECCAF9E07}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{2ECBE568-A045-42A4-98F1-27DECCAF9E07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2ECBE568-A045-42A4-98F1-27DECCAF9E07}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2ECBE568-A045-42A4-98F1-27DECCAF9E07}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2ECBE568-A045-42A4-98F1-27DECCAF9E07}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {E1EC3C8A-4201-466F-BDE2-3485E29663EE}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
9
20241011/WpfApp1/WpfApp1/App.xaml
Normal file
9
20241011/WpfApp1/WpfApp1/App.xaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<Application x:Class="WpfApp1.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:WpfApp1"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
||||||
14
20241011/WpfApp1/WpfApp1/App.xaml.cs
Normal file
14
20241011/WpfApp1/WpfApp1/App.xaml.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
namespace WpfApp1
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for App.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class App : Application
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
10
20241011/WpfApp1/WpfApp1/AssemblyInfo.cs
Normal file
10
20241011/WpfApp1/WpfApp1/AssemblyInfo.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[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)
|
||||||
|
)]
|
||||||
88
20241011/WpfApp1/WpfApp1/MainWindow.xaml
Normal file
88
20241011/WpfApp1/WpfApp1/MainWindow.xaml
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
<Window x:Class="WpfApp1.MainWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:WpfApp1"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="MainWindow" Height="450" Width="800">
|
||||||
|
<!--
|
||||||
|
<Grid Height="200" Width="400" Background="#FF00ff">
|
||||||
|
<Border Margin="10 20 30 40" Background="Yellow">
|
||||||
|
<Border Padding="40 30 20 10">
|
||||||
|
<TextBox Width="50" Height="30">
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<Grid ShowGridLines="True">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Button Content="0/0" Width="30"/>
|
||||||
|
<Label Grid.Row="1" Content="első oszlop második sorában vagyok " />
|
||||||
|
<Calendar Grid.Row="2" Grid.Column="1" />
|
||||||
|
</Grid>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<Grid>
|
||||||
|
<StackPanel Width="200" Orientation="Horizontal">
|
||||||
|
<Button Height="20" Content="button 1" Margin="10"></Button>
|
||||||
|
<Button Height="20" Content="button 2" Margin="10"></Button>
|
||||||
|
<Button Height="20" Content="button 3" Margin="10"></Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<Grid Width="200" Height="200">
|
||||||
|
<WrapPanel>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
<Ellipse Fill="Red" Height="40" Width="40"></Ellipse>
|
||||||
|
</WrapPanel>
|
||||||
|
</Grid>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<Grid>
|
||||||
|
<DockPanel LastChildFill="True">
|
||||||
|
<Button Content="Dock=Top" DockPanel.Dock="Top" Background="Beige"></Button>
|
||||||
|
<Button Content="Dock=Right" DockPanel.Dock="Right" Background="Gold"></Button>
|
||||||
|
<Button Content="Dock=Left" Background="Beige"></Button>
|
||||||
|
<Button Content="Dock=Bottom" DockPanel.Dock="Bottom" Background="Beige"></Button>
|
||||||
|
<Image Source="cat.png" Stretch="Fill"></Image>
|
||||||
|
</DockPanel>
|
||||||
|
</Grid>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition></RowDefinition>
|
||||||
|
<RowDefinition Height="150"></RowDefinition>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*"></ColumnDefinition>
|
||||||
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
||||||
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||||
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Button Grid.RowSpan="2" Content="2 sor"></Button>
|
||||||
|
<GridSplitter Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Width="8" Background="Beige" ResizeBehavior="PreviousAndNext" ResizeDirection="Columns"></GridSplitter>
|
||||||
|
<Button Grid.Column="2" Grid.ColumnSpan="2" Content="2 oszlop"></Button>
|
||||||
|
<Button Grid.Row="1" Grid.Column="2" Content="1,2"></Button>
|
||||||
|
<Button Grid.Row="1" Grid.Column="3" Content="1,3"></Button>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
24
20241011/WpfApp1/WpfApp1/MainWindow.xaml.cs
Normal file
24
20241011/WpfApp1/WpfApp1/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
using System.Text;
|
||||||
|
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 WpfApp1
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainWindow : Window
|
||||||
|
{
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
20241011/WpfApp1/WpfApp1/WpfApp1.csproj
Normal file
11
20241011/WpfApp1/WpfApp1/WpfApp1.csproj
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<UseWPF>true</UseWPF>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
14
20241011/WpfApp1/WpfApp1/WpfApp1.csproj.user
Normal file
14
20241011/WpfApp1/WpfApp1/WpfApp1.csproj.user
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemGroup>
|
||||||
|
<ApplicationDefinition Update="App.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</ApplicationDefinition>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Update="MainWindow.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v8.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v8.0": {
|
||||||
|
"WpfApp1/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"WpfApp1.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"WpfApp1/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
20241011/WpfApp1/WpfApp1/bin/Debug/net8.0-windows/WpfApp1.dll
Normal file
BIN
20241011/WpfApp1/WpfApp1/bin/Debug/net8.0-windows/WpfApp1.dll
Normal file
Binary file not shown.
BIN
20241011/WpfApp1/WpfApp1/bin/Debug/net8.0-windows/WpfApp1.exe
Normal file
BIN
20241011/WpfApp1/WpfApp1/bin/Debug/net8.0-windows/WpfApp1.exe
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user