diff --git a/Fizetes.sln b/Fizetes.sln new file mode 100644 index 0000000..54b1829 --- /dev/null +++ b/Fizetes.sln @@ -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}") = "Fizetes", "Fizetes\Fizetes.csproj", "{13741E92-66FD-4A77-826B-97D26330B065}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {13741E92-66FD-4A77-826B-97D26330B065}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {13741E92-66FD-4A77-826B-97D26330B065}.Debug|Any CPU.Build.0 = Debug|Any CPU + {13741E92-66FD-4A77-826B-97D26330B065}.Release|Any CPU.ActiveCfg = Release|Any CPU + {13741E92-66FD-4A77-826B-97D26330B065}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {08B1280D-4FAB-4050-B397-E27E70B24161} + EndGlobalSection +EndGlobal diff --git a/Fizetes/App.config b/Fizetes/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/Fizetes/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Fizetes/BankiUtalas.cs b/Fizetes/BankiUtalas.cs new file mode 100644 index 0000000..dd3a4bb --- /dev/null +++ b/Fizetes/BankiUtalas.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fizetes +{ + internal class BankiUtalas : FizetesMod + { + public override string Osszeg() + { + return ("Banki utalás engedélyezve!"); + } + + public BankiUtalas(string nev) : base(nev) + { + + } + } +} diff --git a/Fizetes/Fizetes.csproj b/Fizetes/Fizetes.csproj new file mode 100644 index 0000000..6b81dea --- /dev/null +++ b/Fizetes/Fizetes.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {13741E92-66FD-4A77-826B-97D26330B065} + Exe + Fizetes + Fizetes + v4.8 + 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 diff --git a/Fizetes/FizetesMod.cs b/Fizetes/FizetesMod.cs new file mode 100644 index 0000000..67cbca7 --- /dev/null +++ b/Fizetes/FizetesMod.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fizetes +{ + internal abstract class FizetesMod + { + public string Nev { get; set; } + public abstract string Osszeg(); + + protected FizetesMod(string Nev) + { + this.Nev = Nev; + } + } +} diff --git a/Fizetes/IAnozosito.cs b/Fizetes/IAnozosito.cs new file mode 100644 index 0000000..4948370 --- /dev/null +++ b/Fizetes/IAnozosito.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fizetes +{ + internal interface IAnozosito + { + void Azonosit(); + } +} diff --git a/Fizetes/KartyasFizetes.cs b/Fizetes/KartyasFizetes.cs new file mode 100644 index 0000000..19392de --- /dev/null +++ b/Fizetes/KartyasFizetes.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fizetes +{ + internal class KartyasFizetes : FizetesMod, IAnozosito + { + public void Azonosit() + { + Console.WriteLine("Azonosítás elfogadva!"); + } + + public override string Osszeg() + { + return ("Kártyás fizetés elfogadva!"); + } + + public KartyasFizetes(string Nev) : base(Nev) { } + } +} \ No newline at end of file diff --git a/Fizetes/PayPalFizetes.cs b/Fizetes/PayPalFizetes.cs new file mode 100644 index 0000000..cc48083 --- /dev/null +++ b/Fizetes/PayPalFizetes.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fizetes +{ + internal class PayPalFizetes : FizetesMod, IAnozosito + { + public void Azonosit() + { + Console.WriteLine("Azonosítás elfogadva!"); + } + + public override string Osszeg() + { + return ("PayPal fizetés elfogadva!"); + } + + public PayPalFizetes(string Nev) : base(Nev) { } + } +} diff --git a/Fizetes/Program.cs b/Fizetes/Program.cs new file mode 100644 index 0000000..86538f5 --- /dev/null +++ b/Fizetes/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Fizetes +{ + internal class Program + { + static void Main(string[] args) + { + FizetesMod f1 = new KartyasFizetes("Kártyás Fizetés"); + FizetesMod f2 = new BankiUtalas("Banki utalás"); + FizetesMod f3 = new PayPalFizetes("Fizetés PayPal-al"); + + List list = new List(); + + list.Add(f1); + list.Add(f2); + list.Add(f3); + + + } + } +} diff --git a/Fizetes/Properties/AssemblyInfo.cs b/Fizetes/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c1be2f2 --- /dev/null +++ b/Fizetes/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("Fizetes")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Fizetes")] +[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("13741e92-66fd-4a77-826b-97d26330b065")] + +// 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")]