From 7bcea4ea029463e4312dd65eb74d60ce542db7b7 Mon Sep 17 00:00:00 2001 From: pp Date: Tue, 24 Sep 2024 13:00:05 +0200 Subject: [PATCH] Add project files. --- SzimulacioOOP.sln | 25 ++++++++++ SzimulacioOOP/App.config | 6 +++ SzimulacioOOP/Auto.cs | 23 +++++++++ SzimulacioOOP/Benzinkut.cs | 25 ++++++++++ SzimulacioOOP/Ceg.cs | 18 ++++++++ SzimulacioOOP/Fonok.cs | 23 +++++++++ SzimulacioOOP/Properties/AssemblyInfo.cs | 33 +++++++++++++ SzimulacioOOP/Sofor.cs | 16 +++++++ SzimulacioOOP/Szemely.cs | 18 ++++++++ SzimulacioOOP/Szimulacio.cs | 15 ++++++ SzimulacioOOP/SzimulacioOOP.csproj | 59 ++++++++++++++++++++++++ 11 files changed, 261 insertions(+) create mode 100644 SzimulacioOOP.sln create mode 100644 SzimulacioOOP/App.config create mode 100644 SzimulacioOOP/Auto.cs create mode 100644 SzimulacioOOP/Benzinkut.cs create mode 100644 SzimulacioOOP/Ceg.cs create mode 100644 SzimulacioOOP/Fonok.cs create mode 100644 SzimulacioOOP/Properties/AssemblyInfo.cs create mode 100644 SzimulacioOOP/Sofor.cs create mode 100644 SzimulacioOOP/Szemely.cs create mode 100644 SzimulacioOOP/Szimulacio.cs create mode 100644 SzimulacioOOP/SzimulacioOOP.csproj diff --git a/SzimulacioOOP.sln b/SzimulacioOOP.sln new file mode 100644 index 0000000..0fb6019 --- /dev/null +++ b/SzimulacioOOP.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SzimulacioOOP", "SzimulacioOOP\SzimulacioOOP.csproj", "{D47609B6-4133-4D1F-AF51-6B010319DC29}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D47609B6-4133-4D1F-AF51-6B010319DC29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D47609B6-4133-4D1F-AF51-6B010319DC29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D47609B6-4133-4D1F-AF51-6B010319DC29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D47609B6-4133-4D1F-AF51-6B010319DC29}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1EC02CA5-FBC2-4E4D-9F3E-62DF9929A6F0} + EndGlobalSection +EndGlobal diff --git a/SzimulacioOOP/App.config b/SzimulacioOOP/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/SzimulacioOOP/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SzimulacioOOP/Auto.cs b/SzimulacioOOP/Auto.cs new file mode 100644 index 0000000..7ce16d8 --- /dev/null +++ b/SzimulacioOOP/Auto.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal class Auto + { + public String Nev { get; set; } + public Sofor Vezeto { get; set; } + public double Fogyasztas { get; set; } + public double Uzemanyag { get; set; } + public double TankMeret { get; private set; } + public int Ut { get; set; } + + public Auto(String Nev) { + this.Nev = Nev; + TankMeret = 50; + } + } +} diff --git a/SzimulacioOOP/Benzinkut.cs b/SzimulacioOOP/Benzinkut.cs new file mode 100644 index 0000000..3233ba3 --- /dev/null +++ b/SzimulacioOOP/Benzinkut.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal class Benzinkut + { + public double Keszlet { get; set; } + public double BenzinAr { get; set; } + public double Kassza { get; set; } + + public bool Tankolas(Auto kocsi) + { + return false; + } + + public void Fizetes(Sofor vezeto) + { + + } + } +} diff --git a/SzimulacioOOP/Ceg.cs b/SzimulacioOOP/Ceg.cs new file mode 100644 index 0000000..3276053 --- /dev/null +++ b/SzimulacioOOP/Ceg.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal class Ceg + { + public List Autok { get; set; } + public Fonok Igazgato { get; set; } + public List Vezetok { get; set; } + + public Benzinkut Benzinkut { get; set; } + public Ceg() { } + } +} diff --git a/SzimulacioOOP/Fonok.cs b/SzimulacioOOP/Fonok.cs new file mode 100644 index 0000000..8c8c36a --- /dev/null +++ b/SzimulacioOOP/Fonok.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal class Fonok : Szemely + { + + public Fonok(string Nev) : base(Nev) + { + + } + + public void Elkuld(List autok) + { + + } + } +} diff --git a/SzimulacioOOP/Properties/AssemblyInfo.cs b/SzimulacioOOP/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..068feb3 --- /dev/null +++ b/SzimulacioOOP/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SzimulacioOOP")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SzimulacioOOP")] +[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("d47609b6-4133-4d1f-af51-6b010319dc29")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SzimulacioOOP/Sofor.cs b/SzimulacioOOP/Sofor.cs new file mode 100644 index 0000000..3f13e41 --- /dev/null +++ b/SzimulacioOOP/Sofor.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal class Sofor : Szemely + { + public double Tarca { get; set; } + public Sofor(string Nev) : base(Nev) + { + } + } +} diff --git a/SzimulacioOOP/Szemely.cs b/SzimulacioOOP/Szemely.cs new file mode 100644 index 0000000..45f54e1 --- /dev/null +++ b/SzimulacioOOP/Szemely.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal abstract class Szemely + { + public String Nev { get; set; } + public String Beosztas { get; set; } + + public Szemely(String Nev) { + this.Nev = Nev; + } + } +} diff --git a/SzimulacioOOP/Szimulacio.cs b/SzimulacioOOP/Szimulacio.cs new file mode 100644 index 0000000..6bb1c81 --- /dev/null +++ b/SzimulacioOOP/Szimulacio.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SzimulacioOOP +{ + internal class Szimulacio + { + static void Main(string[] args) + { + } + } +} diff --git a/SzimulacioOOP/SzimulacioOOP.csproj b/SzimulacioOOP/SzimulacioOOP.csproj new file mode 100644 index 0000000..e52fddd --- /dev/null +++ b/SzimulacioOOP/SzimulacioOOP.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {D47609B6-4133-4D1F-AF51-6B010319DC29} + Exe + SzimulacioOOP + SzimulacioOOP + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file