Add project files.

This commit is contained in:
tothgergo
2026-09-21 09:24:59 +02:00
parent de236f89fe
commit bb94627809
10 changed files with 266 additions and 0 deletions

3
Fizetesek.slnx Normal file
View File

@@ -0,0 +1,3 @@
<Solution>
<Project Path="Fizetesek/Fizetesek.csproj" />
</Solution>

6
Fizetesek/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>

22
Fizetesek/BankiUtalas.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fizetesek
{
internal class BankiUtalas : FizetesMod
{
public override string Fizetes(int Osszeg)
{
return ($"{Osszeg} összeg fizetve Banki utalásból");
}
}
}

13
Fizetesek/FizetesMod.cs Normal file
View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fizetesek
{
internal abstract class FizetesMod
{
public abstract string Fizetes(int Osszeg);
}
}

View File

@@ -0,0 +1,58 @@
<?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>{EF6820CD-68E8-4F4D-9BEC-FD5590D727F2}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Fizetesek</RootNamespace>
<AssemblyName>Fizetesek</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="BankiUtalas.cs" />
<Compile Include="FizetesMod.cs" />
<Compile Include="IAzonosit.cs" />
<Compile Include="Kártyásfizetés.cs" />
<Compile Include="PayPalFizetes.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

13
Fizetesek/IAzonosit.cs Normal file
View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fizetesek
{
internal interface IAzonosit
{
bool Azonosit();
}
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fizetesek
{
internal class Kártyásfizetés : FizetesMod, IAzonosit
{
public bool Azonosit()
{
Console.WriteLine("jelszót kérek a kártyás fizetéshez");
string beutottjelszo = Console.ReadLine();
if (beutottjelszo == "kartya")
{
return true;
}
else
{
return false;
}
}
public override string Fizetes(int Osszeg)
{
if (Azonosit())
{
return ($"{Osszeg} összeg fizetve Banki utalásból");
}
else
{
return ("nem sikerült a bejelentkezés a Kártyába");
}
}
}
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Fizetesek
{
internal class PayPalFizetes : FizetesMod, IAzonosit
{
public bool Azonosit()
{
Console.WriteLine("jelszót kérek a paypalba");
string beutottjelszo = Console.ReadLine();
if (beutottjelszo == "jelszo")
{
return true;
}
else
{
return false;
}
}
public override string Fizetes(int Osszeg)
{
if (Azonosit()) {
return ($"{Osszeg} összeg fizetve PayPalról");
}
else
{
return ("nem sikerült a bejelentkezés a Paypalba");
}
}
}
}

24
Fizetesek/Program.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fizetesek
{
internal class Program
{
static void Main(string[] args)
{
Kártyásfizetés kartya = new Kártyásfizetés();
BankiUtalas otp = new BankiUtalas();
PayPalFizetes payPalF = new PayPalFizetes();
Console.WriteLine(kartya.Fizetes(120));
Console.WriteLine(payPalF.Fizetes(120));
Console.WriteLine(otp.Fizetes(60));
}
}
}

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("Fizetesek")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Fizetesek")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[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("ef6820cd-68e8-4f4d-9bec-fd5590d727f2")]
// 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")]