public void Connect() { try { ActiveConnection.Connect(ServerAddress, ServerPort); IsConnected = true; } catch (Exception) { IsConnected = false; } }
public void Connect() { try { ActiveConnection.Connect(ServerAddress, ServerPort); IsConnected = true; } catch (Exception) { IsConnected = false; } }