private void _startStopButton_Click(object sender, EventArgs e) { _isRunning = !_isRunning; if (_isRunning) { _server.Start(); } else { _server.Stop(); } UpdateStateStrings(); _clientsListBox.Items.Clear(); }
public void Stop() => _server.Stop();
private void _startStopButton_Click(object sender, EventArgs e) { _isRunning = !_isRunning; if (_isRunning) { _server.Start(); } else { _server.Stop(); } UpdateStateStrings(); _clientsListBox.Items.Clear(); }
public void Stop() => _server.Stop();