Beispiel #1
0
        /* サーバ */
        private void button2_Click(object sender, EventArgs e)
        {
            if (server != null)
            {
                server.stop();
                server = null;
                button2.Text = "開始";
                printLog("サーバ終了");
                return;
            }

            server = new Server(Decimal.ToInt32(numericUpDown1.Value));
            button2.Text = "終了";
            printLog("サーバ起動");
        }