private void _btnStartStop_Click(object sender, EventArgs e) { _isStarted = !_isStarted; if (_isStarted) { Server = new SipServer(); Server.Configure(Configuration); Server.Start(); } else { Server.Stop(); } _btnStartStop.Text = _isStarted ? "Stop" : "Start"; _grbNavigation.Enabled = _isStarted; }
private void _btnStartStop_Click(object sender, EventArgs e) { _isStarted = !_isStarted; if(_isStarted) { Server = new SipServer(); Server.Configure(Configuration); Server.Start(); } else { Server.Stop(); } _btnStartStop.Text = _isStarted ? "Stop" : "Start"; _grbNavigation.Enabled = _isStarted; }