示例#1
0
        //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";
            }
        }
示例#2
0
        //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();
            }
        }