additions
This commit is contained in:
42
.history/desktop_global/Program_20251009100957.cs
Normal file
42
.history/desktop_global/Program_20251009100957.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user