private void MainDisplay_FormClosing(object sender, FormClosingEventArgs e) { Server.CloseConnection(); //Closes all of the opened connections and stops listening }
private void OpenToolStripMenuItemClick(object sender, EventArgs e) { server.CloseConnection(); lblConnectionStatusImage.Image = Properties.Resources.red_47690_640; }