Store in GIT
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Composite
|
||||
{
|
||||
public class MenuComponent
|
||||
{
|
||||
public MenuComponent component;
|
||||
|
||||
public MenuComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public virtual string DrukAf()
|
||||
{
|
||||
if (component != null)
|
||||
return component.DrukAf();
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
public virtual void VoegToe(MenuComponent m)
|
||||
{
|
||||
this.component = m;
|
||||
}
|
||||
|
||||
public virtual void Verwijder(MenuComponent m)
|
||||
{
|
||||
this.component = null;
|
||||
}
|
||||
|
||||
public MenuComponent Child()
|
||||
{
|
||||
return component;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user