上传者: kiqq2003
|
上传时间: 2022-03-04 16:51:03
|
文件大小: 24KB
|
文件类型: -
c#实现p2p局域网聊天小软件的源码,
private void button1_Click(object sender, System.EventArgs e)
{
button1.Enabled = false;
button2.Enabled = true;
th = new Thread(new ThreadStart(Listen));
th.Start();
}
private void button2_Click(object sender, System.EventArgs e)
{
button1.Enabled = true;
button2.Enabled = false;
listenerRun = false;
Stop();
}
private void button3_Click(object sender, System.EventArgs e)
{
Send();
}