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