

private void button2_Click(object sender, EventArgs e)
{
Dispose();
}
private void button1_Click(object sender, EventArgs e)
{
string str;
str = "당신의 연령은" + "\\n";
if (radioButton1.Checked == true)
str += radioButton1.Text;
else if (radioButton2.Checked == true)
str += radioButton2.Text;
else if (radioButton3.Checked == true)
str += radioButton3.Text;
else if (radioButton4.Checked == true)
str += radioButton4.Text;
else if (radioButton5.Checked == true)
str += radioButton5.Text;
else if (radioButton6.Checked == true)
str += radioButton6.Text;
str += "\\r\\n" + "좋아하는 색은" + "\\r\\n";
if (checkBox1.Checked == true)
str += checkBox1.Text + "\\r\\n";
if (checkBox2.Checked == true)
str += checkBox2.Text + "\\r\\n";
if (checkBox3.Checked == true)
str += checkBox3.Text + "\\r\\n";
if (checkBox4.Checked == true)
str += checkBox4.Text + "\\r\\n";
if (checkBox5.Checked == true)
str += checkBox5.Text + "\\r\\n";
if (checkBox6.Checked == true)
str += checkBox6.Text + "\\r\\n";
textBox1.Text = str + "\\n입니다";
}