Add project files.
This commit is contained in:
parent
3629f069fc
commit
6f9212327a
25
FizetesiMod.sln
Normal file
25
FizetesiMod.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}") = "FizetesiMod", "FizetesiMod\FizetesiMod.csproj", "{E71BC998-15A4-4FCC-91C9-BC7CB01E7458}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E71BC998-15A4-4FCC-91C9-BC7CB01E7458}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E71BC998-15A4-4FCC-91C9-BC7CB01E7458}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E71BC998-15A4-4FCC-91C9-BC7CB01E7458}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E71BC998-15A4-4FCC-91C9-BC7CB01E7458}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {B00ED34A-6A52-49EF-9F7A-7A22314918D7}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
6
FizetesiMod/App.config
Normal file
6
FizetesiMod/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>
|
13
FizetesiMod/Azonosithato.cs
Normal file
13
FizetesiMod/Azonosithato.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FizetesiMod
|
||||
{
|
||||
internal interface Azonosithato
|
||||
{
|
||||
bool Azonositas();
|
||||
}
|
||||
}
|
16
FizetesiMod/BankiUtalas.cs
Normal file
16
FizetesiMod/BankiUtalas.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FizetesiMod
|
||||
{
|
||||
internal class BankiUtalas : FizetesMod
|
||||
{
|
||||
public override void Fizetes(int Osszeg)
|
||||
{
|
||||
Console.WriteLine($"Sikeres banki utalás: {Osszeg} Ft.");
|
||||
}
|
||||
}
|
||||
}
|
13
FizetesiMod/FizetesMod.cs
Normal file
13
FizetesiMod/FizetesMod.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FizetesiMod
|
||||
{
|
||||
abstract class FizetesMod
|
||||
{
|
||||
public abstract void Fizetes(int Osszeg);
|
||||
}
|
||||
}
|
58
FizetesiMod/FizetesiMod.csproj
Normal file
58
FizetesiMod/FizetesiMod.csproj
Normal 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>{E71BC998-15A4-4FCC-91C9-BC7CB01E7458}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>FizetesiMod</RootNamespace>
|
||||
<AssemblyName>FizetesiMod</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="Azonosithato.cs" />
|
||||
<Compile Include="BankiUtalas.cs" />
|
||||
<Compile Include="FizetesMod.cs" />
|
||||
<Compile Include="KartyasFizetes.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>
|
43
FizetesiMod/KartyasFizetes.cs
Normal file
43
FizetesiMod/KartyasFizetes.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FizetesiMod
|
||||
{
|
||||
internal class KartyasFizetes : FizetesMod, Azonosithato
|
||||
{
|
||||
private bool azonositva = false;
|
||||
|
||||
public bool Azonositas()
|
||||
{
|
||||
Console.WriteLine("Kártyás azonosítás folyamatban...");
|
||||
Console.Write("Kérem a PIN-kódot: ");
|
||||
int pin = Convert.ToInt32(Console.ReadLine());
|
||||
if (pin == 1234)
|
||||
{
|
||||
Console.WriteLine("Helyes PIN-kód.");
|
||||
azonositva = true;
|
||||
return azonositva;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Helytelen PIN-kód.");
|
||||
return azonositva;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Fizetes(int Osszeg)
|
||||
{
|
||||
if (azonositva)
|
||||
{
|
||||
Console.WriteLine($"Sikeres kártyás fizetés: {Osszeg} Ft.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Azonosítás szükséges a kártyás fizetéshez!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
43
FizetesiMod/PayPalFizetes.cs
Normal file
43
FizetesiMod/PayPalFizetes.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FizetesiMod
|
||||
{
|
||||
internal class PayPalFizetes : FizetesMod, Azonosithato
|
||||
{
|
||||
private bool azonositva = false;
|
||||
|
||||
public bool Azonositas()
|
||||
{
|
||||
Console.WriteLine("PayPal azonosítás folyamatban...");
|
||||
Console.Write("Kérem a PIN-kódot: ");
|
||||
int pin = Convert.ToInt32(Console.ReadLine());
|
||||
if (pin == 1234)
|
||||
{
|
||||
Console.WriteLine("Helyes PIN-kód.");
|
||||
azonositva = true;
|
||||
return azonositva;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Helytelen PIN-kód.");
|
||||
return azonositva;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Fizetes(int Osszeg)
|
||||
{
|
||||
if (azonositva)
|
||||
{
|
||||
Console.WriteLine($"Sikeres PayPal fizetés: {Osszeg} Ft.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Azonosítás szükséges a PayPal fizetéshez!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
30
FizetesiMod/Program.cs
Normal file
30
FizetesiMod/Program.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FizetesiMod
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//Kártya
|
||||
KartyasFizetes kartyasFizetes = new KartyasFizetes();
|
||||
kartyasFizetes.Fizetes(5000);
|
||||
kartyasFizetes.Azonositas();
|
||||
kartyasFizetes.Fizetes(5000);
|
||||
|
||||
//PayPal
|
||||
PayPalFizetes payPalFizetes = new PayPalFizetes();
|
||||
payPalFizetes.Fizetes(10000);
|
||||
payPalFizetes.Azonositas();
|
||||
payPalFizetes.Fizetes(10000);
|
||||
|
||||
//Banki utalás
|
||||
BankiUtalas bankiUtalas = new BankiUtalas();
|
||||
bankiUtalas.Fizetes(30000);
|
||||
}
|
||||
}
|
||||
}
|
33
FizetesiMod/Properties/AssemblyInfo.cs
Normal file
33
FizetesiMod/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("FizetesiMod")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FizetesiMod")]
|
||||
[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("e71bc998-15a4-4fcc-91c9-bc7cb01e7458")]
|
||||
|
||||
// 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")]
|
Loading…
Reference in New Issue
Block a user