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