Add project files.

This commit is contained in:
István Priskin 2024-09-24 13:00:05 +02:00
parent bf315078e0
commit 7bcea4ea02
11 changed files with 261 additions and 0 deletions

25
SzimulacioOOP.sln Normal file
View 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}") = "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

6
SzimulacioOOP/App.config Normal file
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>

23
SzimulacioOOP/Auto.cs Normal file
View File

@ -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;
}
}
}

View File

@ -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)
{
}
}
}

18
SzimulacioOOP/Ceg.cs Normal file
View File

@ -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<Auto> Autok { get; set; }
public Fonok Igazgato { get; set; }
public List<Sofor> Vezetok { get; set; }
public Benzinkut Benzinkut { get; set; }
public Ceg() { }
}
}

23
SzimulacioOOP/Fonok.cs Normal file
View File

@ -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<Auto> autok)
{
}
}
}

View 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("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")]

16
SzimulacioOOP/Sofor.cs Normal file
View File

@ -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)
{
}
}
}

18
SzimulacioOOP/Szemely.cs Normal file
View File

@ -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;
}
}
}

View File

@ -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)
{
}
}
}

View File

@ -0,0 +1,59 @@
<?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>{D47609B6-4133-4D1F-AF51-6B010319DC29}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>SzimulacioOOP</RootNamespace>
<AssemblyName>SzimulacioOOP</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="Auto.cs" />
<Compile Include="Benzinkut.cs" />
<Compile Include="Ceg.cs" />
<Compile Include="Fonok.cs" />
<Compile Include="Sofor.cs" />
<Compile Include="Szemely.cs" />
<Compile Include="Szimulacio.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>