private void StopServer_Click(object sender, EventArgs e)
        {
            _asyncSocketServer.StopServer();

            if (lblServerStatus == null)
            {
                return;
            }

            lblServerStatus.Text      = @"Stopped!";
            lblServerStatus.BackColor = Color.Red;
            lblServerStatus.ForeColor = Color.White;

            pnlMessages.Visible = false;
        }
 private void AsyncServerForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _asyncSocketServer?.StopServer();
 }