public IWindow CreateWindow(IGUIFactory guiFactoryfactory) { var window = guiFactoryfactory.Window(); var button = guiFactoryfactory.Button(); var label = guiFactoryfactory.Label(); window.AddChild(button); window.AddChild(label); return(window); }