示例#1
0
        private async void Form1_Load(object sender, EventArgs e)
        {
            //set the form
            RAT.caller = this;

            //start the server async
            await Task.Run(() => RAT.StartServer(port));

            statusLabel.Text = "Server started";
            await Task.Delay(4000);

            statusLabel.Text = "";
        }