Esempio n. 1
0
        void _newServer_ClientConnected()
        {
            _secondsTimer.Stop();
            _newServer.StopBroadcast();
            _newServer.OnDiscoveryTimeOut -= _newServer_OnDiscoveryTimeOut;

            InvokeOnMainThread(() => {
                DiscoveryModeBtn.Enabled          = true;
                ConnectedClientsLabel.StringValue = _newServer.ConnectedClients().ToString();
                ServerStatusLabel.StringValue     = "Server Started";
            });
        }
Esempio n. 2
0
        void _newServer_ClientConnected()
        {
            Console.WriteLine("[FORM] Client Connected");
            _newServer.StopBroadcast();
            _secondsTimer.Stop();

            this.Invoke((MethodInvoker) delegate
            {
                _numClientsConn.Text = _newServer.ConnectedClients().ToString();
                statusLbl.Text       = "Server Started";
                DebugBtn1.Enabled    = true;
            });
        }