Ejemplo n.º 1
0
        /// <summary>
        /// Print <see cref="XPathNodeIterator"/> value.
        /// </summary>
        /// <param name="description">Result description.</param>
        /// <param name="result">Evaluation result.</param>
        protected static void Print(string description, object result)
        {
            Console.WriteLine();
            SysConsole.WriteInfoLine(description);
            if (result == null)
            {
                return;
            }

            var iterator = result as XPathNodeIterator;

            if (iterator != null)
            {
                while (iterator.MoveNext())
                {
                    var current = iterator.Current;
                    Console.WriteLine(current.Value);
                }
            }
            else
            {
                Console.WriteLine(result);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Вывод текста ожидания клиента.
 /// </summary>
 public static void AwaitingClientConnections()
 {
     SysConsole.WriteLine();
     SysConsole.WriteQuestionLine("Awaiting client connections...");
     Console.ReadKey();
 }