From ff2234af510bdb142b70d4d74c4ab3715a27cbd4 Mon Sep 17 00:00:00 2001 From: SwEdryG Date: Wed, 10 Jun 2026 23:15:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Core/PrintAny.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Графический класс, для кого вообще эти описания? Я на гитхабе так не расписывал как тут --- Core/PrintAny.cs | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Core/PrintAny.cs diff --git a/Core/PrintAny.cs b/Core/PrintAny.cs new file mode 100644 index 0000000..72de4a6 --- /dev/null +++ b/Core/PrintAny.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace IP_port_checker.Core +{ + public class PrintAny + { + public static void Print_Menu() + { + Console.WriteLine(new string('=', 50)); + Console.WriteLine(new string(' ', 19) + "Network_Tool"); + Console.WriteLine(new string(' ', 17) + "Working with TCP"); + Console.WriteLine(); + Console.ForegroundColor = ConsoleColor.DarkRed; + Console.WriteLine(" Программа предназначена для сканирования"); + Console.WriteLine(" собственного IP-адреса"); + Console.WriteLine(" Пользователь ответственен за использование"); + Console.WriteLine(" на чужих системах."); + Console.ResetColor(); + Console.WriteLine(new string('=', 50)); + } + public static void PrintDisclaimer() + { + Console.ForegroundColor = ConsoleColor.DarkRed; + Console.WriteLine(new string('=', 60)); + Console.WriteLine(" [!] ПРАВОВОЕ ПРЕДУПРЕЖДЕНИЕ [!]"); + Console.WriteLine(new string('=', 60)); + Console.WriteLine(" Разработчик программы SwEdryG не несёт ответственности"); + Console.WriteLine("за действия пользователя с использованием данной программы."); + Console.WriteLine(); + Console.WriteLine(" Ответственность за незаконные деяния лежит на плечах"); + Console.WriteLine("самого пользователя."); + Console.WriteLine(); + Console.WriteLine(" Нажимая Enter, вы подтверждаете, что:"); + Console.WriteLine(" . Прочитали README в корне программы"); + Console.WriteLine(" . Согласны с вышеизложенным текстом"); + Console.WriteLine(" . Принимаете всю ответственность на себя"); + Console.WriteLine(new string('=', 60)); + Console.ResetColor(); + + Console.WriteLine("\nНажмите Enter для продолжения..."); + Console.ReadLine(); + } + + public static void PrintIPLogo() + { + Console.WriteLine(); + } + } +}