using System; using System.Threading; namespace VideoReader { public class Program { public static void Main(string[] args) { Console.WriteLine("VideoReader Global Edition v1.0"); Console.WriteLine("==================================="); Console.WriteLine(); try { // Загружаем конфигурацию var config = ServerConfig.LoadConfig(); Console.WriteLine($"Loaded server configuration: {config.ServerAddress}:{config.Port}"); Console.WriteLine($"Channel: {config.Channel}"); Console.WriteLine($"Server Type: {config.ServerType}"); Console.WriteLine(); // Создаем подключение (без GUI) var socket = new InOutSocket(); socket.Connect(); Console.WriteLine(); Console.WriteLine("Application running in console mode."); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); socket.Disconnect(); } catch (Exception ex) { Console.WriteLine($"Error: {ex.Message}"); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); } } } }