public MainWindow() { InitializeComponent(); int Port = 85; ServerModule = new Manager.SockServer.Server(); try { ServerModule.Start(Port); } catch { return; } ServerModule.ClientsReceiveCommand += new OnClientsReceiveCommand(ServerModule_ClientReceiveCommand); //LB_Users.ItemsSource = ServerModule.Clients; LB_Users.DisplayMemberPath = "ClientInfo"; }
public App() { proxyServer = new Manager.SockServer.Server(); proxyServer.ClientsReceiveCommand += new OnClientsReceiveCommand(proxyServer_ClientReceiveCommand); proxyServer.Start(85); }