Store in GIT
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Decorators
|
||||
{
|
||||
public class Champignon : PannenkoekDecorator
|
||||
{
|
||||
public Champignon(Pannenkoek p) : base(p, "Champignon", 2.0)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Decorators
|
||||
{
|
||||
public class Honing : PannenkoekDecorator
|
||||
{
|
||||
public Honing(Pannenkoek p) : base(p, "Honing", 1.3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Decorators
|
||||
{
|
||||
public class Kaas : PannenkoekDecorator
|
||||
{
|
||||
public Kaas(Pannenkoek p) : base(p, "Kaas", 1.5)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis
|
||||
{
|
||||
public class PannenkoekDecorator : Pannenkoek
|
||||
{
|
||||
protected Pannenkoek pannenkoek;
|
||||
|
||||
public PannenkoekDecorator(Pannenkoek p, string beschrijving, double prijs) : base(beschrijving, prijs)
|
||||
{
|
||||
this.pannenkoek = p;
|
||||
this.status = Status.NULL;
|
||||
}
|
||||
|
||||
public double GetPrijs()
|
||||
{
|
||||
return Prijs + (pannenkoek == null ? 0 : pannenkoek.Prijs);
|
||||
}
|
||||
|
||||
public new string Beschrijving
|
||||
{
|
||||
get
|
||||
{
|
||||
if (pannenkoek == null)
|
||||
return Beschrijving + " met ";
|
||||
else
|
||||
return pannenkoek.Beschrijving + ", " + Beschrijving;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Decorators
|
||||
{
|
||||
public class Stroop : PannenkoekDecorator
|
||||
{
|
||||
public Stroop(Pannenkoek p) : base(p, "Stroop", 0.5)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Decorators
|
||||
{
|
||||
public class Suiker : PannenkoekDecorator
|
||||
{
|
||||
public Suiker(Pannenkoek p) : base(p, "Suiker", 0.3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Decorators
|
||||
{
|
||||
public class Ui : PannenkoekDecorator
|
||||
{
|
||||
public Ui(Pannenkoek p) : base(p, "Ui", 0.7)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
[.ShellClassInfo]
|
||||
InfoTip=This folder is shared online.
|
||||
IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe
|
||||
IconIndex=16
|
||||
|
||||
Reference in New Issue
Block a user