示例#1
0
        public void GoToPage()
        {
            Console.WriteLine("Enter URL:");
            var url = Console.ReadLine();

            ICommand command = new GoToPageCommand(engine, url);

            command.Execute();
        }
示例#2
0
        public void GoToPage()
        {
            Console.Write("Enter URL: ");
            var      url     = Console.ReadLine();
            ICommand command = new GoToPageCommand(url, webBrowserEngine);

            command.Execute();

            //var html = webBrowserEngine.LoadPage(url);
            //Console.WriteLine(html);
        }