Beispiel #1
0
        public override void Draw(Window window)
        {
            for (int i = 0; i < children.Count; i++)
            {
                if (strategy != null)
                    strategy.Compose(children[i], window);
                else
                    children[i].Draw(window);

                if (i < (children.Count - 1))
                    window.DrawText(", ");
            }

            foreach (Glyph item in children)
            {
                
            }
        }
Beispiel #2
0
 public override void Draw(Window window)
 {
     window.DrawText("Circle"); ;
 }
Beispiel #3
0
 public override void Draw(Window window)
 {
     component.Draw(window);
 }
Beispiel #4
0
 public void TestInitialize()
 {
     window = new TextWindow(new SimpleTextWindowImp());
 }
Beispiel #5
0
 public Button CreateButton(Window window)
 {
     return new MacButton(new ClickCommand(window));
 }
 public void Compose(Glyph item, Window window)
 {
     window.DrawText("[");
     item.Draw(window);
     window.DrawText("]");
 }
Beispiel #7
0
 public ClickCommand(Window window)
 {
     this.window = window;
 }
Beispiel #8
0
 public abstract void Draw(Window window);
Beispiel #9
0
 public override void Draw(Window window)
 {
     window.DrawText("MacButton");
 }
Beispiel #10
0
 public override void Draw(Window window)
 {
     window.DrawText("Rectangle");
 }