예제 #1
0
        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;
        }
예제 #2
0
        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;
        }