private static void CreateWindowWithTwoButtonsAndProgressBar(IGUIFactory factory)
        {
            var button1     = factory.CreateButton();
            var button2     = factory.CreateButton();
            var progressBar = factory.CreateProgressBar();

            button1.Paint();
            button2.Paint();
            progressBar.Paint();
            progressBar.SetProgress(45);
        }