public Client(WidgetFactory factory) { _window = factory.CreateWindow(); _scrollbar = factory.CreateScrollBar(); }
public Client(WidgetFactory widgetFactory) { window = widgetFactory.CreateWindow(); scrollBar = widgetFactory.CreateScrollBar(); }