and here is button code : private void btnSave_Click(object sender, EventArgs e) { if (RadioMale.Checked == true) { jensiyat = "مرد"; } else { jensiyat = "زن"; } if (RadioMarried.Checked == true) tahol = "متاهل"; else tahol = "مجرد"; Class1.txt += "________________________\n\n" + "مشخصات مربوط به خانم/آقای " + tbFamily.Text + "\n________________________" + "\nنام و نام خانوادگی: " + tbName.Text + " " + tbFamily.Text + "\n" + "ایمیل: " + tbEmail.Text + "\n" + "شماره ملی: " + tbCodmeli.Text + "\n" + "سریال شناسنامه: " + tbSerialShenasname.Text + "\nشهر محل زندگی: "+ shahr + " - " + TreeShahr.SelectedNode.Text + "\nآدرس: " + tbAddress.Text + "\n" + " تحصیلات : " + ComboTahsilat.SelectedItem + "\nجنسیت : " +jensiyat + "\nوضعیت تاهل: " + tahol + "\nتاریخ تولد: " + BirthTimePicker.Value.ToPeString() + "\n__________________________________________________"; Form frm2 = new Form2(); frm2.Show(); }
public static Form2 Instance { get { if (_form2 == null) { _form2 = new Form2(); } return _form2; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)