예제 #1
0
 public Decorator(Glyph component)
 {
     this.component = component;
 }
 public void Compose(Glyph item, Window window)
 {
     window.DrawText("[");
     item.Draw(window);
     window.DrawText("]");
 }
예제 #3
0
 public CurlyBracketsDecorator(Glyph component) : base(component)
 {
 }
예제 #4
0
파일: Glyph.cs 프로젝트: PlumpMath/GoF.Lexi
 public virtual void Insert(Glyph glyph)
 {
     throw new InvalidOperationException("Only a row glyph must use insert");
 }
예제 #5
0
 public override void Insert(Glyph glyph)
 {
     children.Add(glyph);
 }