privatevoidbutton1_Click(objectsender,EventArgse){if(textBox1.Text==""){MessageBox.Show("请输入一个正整数","提示",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Information);