public Settings(IGUIFactory factory) { button = factory.CreateButton(); button.Command(); appearance = factory.ApplyBackground(); appearance.SetBackground(); }
public void paint(IApperance app) { Console.WriteLine("{0} coloured with {1}", this.buttonShape(), app.BackgroundColor()); Console.WriteLine(); }