110,476
社区成员
发帖
与我相关
我的任务
分享
public Action<string> ChangeStr;
private void Form3_Load(object sender, EventArgs e)
{
ChangeStr = new Action<string>(LoadMsg);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
ChangeStr(textBox1.Text);
}
private void LoadMsg(string obj)
{
label1.Text = obj;
label2.Text = obj;
}