我有这段代码,但是我想使其更直接。
private void button1_Click(object sender, EventArgs e)
{
int x = Convert.ToInt32(textBox1.Text);
int y = Convert.ToInt32(textBox2.Text);
textBox1.Text = y.ToString();
textBox2.Text = x.ToString();
}