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