Ejemplo n.º 1
0
        public Manager(IUserInterface userInterface, Configuration configuration, IBrowserNavigator browserNavigator)
        {
            m_browserNavigator = browserNavigator;
            m_configuration = configuration;
            m_userInterface = userInterface;

            userInterface.OnButtonClick += ButtonClick;
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            UserInterface userInterface = new UserInterface(c_buttonUnicorns, c_buttonRainbows, c_labelCount);
            m_configuration = new Configuration();
            m_configuration.SearchRoot = "http://www.bing.com/images/search?q=";
            m_browserNavigator = new BrowserNavigator();

            Manager manager = new Manager(userInterface, m_configuration, m_browserNavigator);
        }