public bool Connect() { try { _running = true; _socket.Connect(_endpoint); _thread.Start(); }catch(Exception e) { _running = false; return false; } return true; }
public Form1() { InitializeComponent(); _client = new Networking.Client("127.0.0.1", 10250); _client.Connect(); FormClosing += Form1_FormClosing; }