public static bool ViewPoint(TextMap map, int index) { TextPoint point = map[index]; if (point == null) { Console.WriteLine("Такого элемента нет"); return(false); } else { Console.WriteLine("Точка №{0} {1}", point.Number, (point.IsFinal) ? "финальная" : ""); Console.WriteLine("Основной текст - " + point.TableText); Console.WriteLine("С размером шрифта {0}px", point.TextSize); switch (point.ColorPack) { case 1: { Console.Write("Нормальный"); break; } case 2: { Console.Write("Пессимистичный"); break; } case 3: { Console.Write("Весёлый"); break; } case 4: { Console.Write("Злой"); break; } case 5: { Console.Write("Радужный"); break; } } Console.WriteLine(" цвет"); if (point.IsFinal) { return(false); } Console.WriteLine("Ответы:"); if (point.NextTo(1) == 0) { Console.WriteLine("Да - 0"); } else if (map[point.NextTo(1)] == null) { Console.WriteLine("Да - {0}, точки нет", point.NextTo(1)); } else { Console.WriteLine("Да - {0}, {1}", point.NextTo(1), map.Preview(point, 1)); } if (point.NextTo(2) == 0) { Console.WriteLine("Нет - 0"); } else if (map[point.NextTo(2)] == null) { Console.WriteLine("Нет - {0}, точки нет", point.NextTo(2)); } else { Console.WriteLine("Нет - {0}, {1}", point.NextTo(2), map.Preview(point, 2)); } if (point.NextTo(3) == 0) { Console.WriteLine("Альтернативный - 0"); } else if (map[point.NextTo(3)] == null) { Console.WriteLine("{1} - {0}, точки нет", point.NextTo(3), point.AlterText); } else { Console.WriteLine("{2} - {0}, {1}", point.NextTo(3), map.Preview(point, 3), point.AlterText); } if (point.NextTo(1) == 0 && point.NextTo(2) == 0 && point.NextTo(3) == 0) { return(false); } return(true); } }