//Starts the server private void btStart_Click(object sender, EventArgs e) { bServerRunning = !bServerRunning; if (bServerRunning) { oServer.StartServer(); oTransferServer.StartServer(); btStart.Text = "Stop server"; } else { oServer.StopServer(); oTransferServer.StopServer(); btStart.Text = "Start server"; } }
//Starts the server private void btStart_Click(object sender, EventArgs e) { bServerRunning = !bServerRunning; if (bServerRunning) { oServer.StartServer(); oTransferServer.StartServer(); btStart.Text = "Stop server"; frameCounter = 0; LocalFrames = LoadFrames(); } else { oServer.StopServer(); oTransferServer.StopServer(); btStart.Text = "Start server"; frameCounter = 0; LocalFrames.Clear(); } }