コード例 #1
0
ファイル: ServerMainForm.cs プロジェクト: goupviet/Hallo
        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
ファイル: ServerMainForm.cs プロジェクト: HNeukermans/Hallo
        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;
        }