Store in GIT

This commit is contained in:
2026-06-17 15:58:48 +02:00
parent 163db046ef
commit adcacd2cc1
64 changed files with 2249 additions and 0 deletions
@@ -0,0 +1,21 @@
using Strategy_Kassabon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pannenkoekenhuis.Strategy
{
public abstract class KortingsCalculator
{
protected Kassabon a;
public KortingsCalculator(Kassabon a)
{
this.a = a;
}
public abstract double Korting();
}
}
@@ -0,0 +1,32 @@
using Strategy_Kassabon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pannenkoekenhuis.Strategy
{
public class NaturelKorting : KortingsCalculator
{
public NaturelKorting(Kassabon a) : base(a)
{ }
public override double Korting()
{
List<Pannenkoek> pannenkoeken = a.pannenkoeken;
double korting = 0;
foreach (Pannenkoek p in pannenkoeken)
{
if (p.Beschrijving == "Naturelpannenkoek")
{
korting += p.Prijs * 0.1;
}
}
return korting;
}
}
}
+20
View File
@@ -0,0 +1,20 @@
using Strategy_Kassabon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pannenkoekenhuis.Strategy
{
public class NulKorting : KortingsCalculator
{
public NulKorting(Kassabon a) : base(a)
{ }
public override double Korting()
{
return 0;
}
}
}
+5
View File
@@ -0,0 +1,5 @@
[.ShellClassInfo]
InfoTip=This folder is shared online.
IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe
IconIndex=16