Example #1
0
        static void Main(string[] args)
        {
            //Объект класса WebPage → Newtonsoft.JSON → Текстовая строка
            string txt1 = PageWorker.Ser(wp1);
            string txt2 = PageWorker.Ser(wp2);

            Console.WriteLine("Страница1 txt1: " + txt1);
            Console.WriteLine("Страница2 txt2: " + txt2);

            //Текстовая строка → Newtonsoft.JSON → Объект класса WebPage
            Console.WriteLine("Взятие контента из переменной txt1 - " + PageWorker.GetContent(txt1));
            Console.WriteLine("Взятие URL из переменной txt2 - " + PageWorker.GetURL(txt2));
            Console.WriteLine("Взятие URL из переменной Test - " + PageWorker.GetURL(Test));

            Console.WriteLine("Всего сделанно страниц - " + WebPageMaker.SumPage);

            Console.ReadLine();
        }
 public PageController()
 {
     pageWorker = new PageWorker();
 }
 public PageManagerController()
 {
     m_pageWorker = new PageWorker();
 }