void GMesaj(string Adi, string Soyadi)
{
MessageBox.Show(”Adi : ” + Adi + “\nSoyadi : ” + Soyadi);
}

private void button1_Click(object sender, EventArgs e)
{
string ad,soy;
ad = textBox1.Text;
soy = textBox2.Text;
GMesaj(ad,soy);
}