private void lblzamen2_Click(object sender, EventArgs e)
        {
            frmzamen frm1 = new frmzamen();

            frm1.MdiParent = frmmdi.frmMain;
            frm1.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            frmzamen f1 = new frmzamen();

            f1.MdiParent  = frmmdi.frmMain;
            f1.sZamendNum = "1";
            ////define data
            Applicant.txtname        = txtname.Text;
            Applicant.txtfamily      = txtfamily.Text;
            Applicant.txtfname       = txtfname.Text;
            Applicant.txtbirthday    = txtbirthday.Text;
            Applicant.txtbirthplace  = txtbirthplace.Text;
            Applicant.txtshsh        = txtshsh.Text;
            Applicant.txtssh         = txtssh.Text;
            Applicant.txtserish      = txtserish.Text;
            Applicant.txtcodeposti   = txtcodeposti.Text;
            Applicant.txtaddress     = txtaddress.Text;
            Applicant.txtjob         = txtjob.Text;
            Applicant.txtsex         = (rbman.Checked == true ? "آقا" : "خانم");
            Applicant.txttabeiat     = txttabeiat.Text;
            Applicant.txtsanadplace  = txtsanadplace.Text;
            Applicant.txtactiveplace = txtactiveplace.Text;
            Applicant.txtmahalekasb  = txtmahalekasb.Text;
            Applicant.txtactivetype  = txtactivetype.Text;
            Applicant.txtactivetime  = txtactivetime.Text;
            //////////////////for sanad
            Applicant.txtmojabeztype     = txtmojabeztype.Text;
            Applicant.txtsendmojavez     = txtsendmojavez.Text;
            Applicant.txtvakhast         = txtvakhast.Text;
            Applicant.txtshohrat         = txtshohrat.Text;
            Applicant.txtshomaremojavez  = txtshomaremojavez.Text;
            Applicant.txtdatemojavez     = txtdate.Text;
            Applicant.txtexpire          = txtexpire.Text;
            Applicant.txtdategharardad   = txtdategharardad.Text;
            Applicant.txtaccounttype     = txtaccounttype.Text;
            Applicant.txtdateeftetah     = txtdateeftetah.Text;
            Applicant.txtaccountnumber1  = txtaccountnumber1.Text;
            Applicant.txtgharardadnumber = txtgharardadnumber.Text;
            Applicant.txttashilatnumber  = txttashilatnumber.Text;
            Applicant.txtcodeetebari     = txtcodeetebari.Text;
            Applicant.txtcodesenfi       = txtcodesenfi.Text;
            Applicant.txttashilatprice   = txttashilatprice.Text;
            Applicant.txtnerkh           = txtnerkh.Text;
            Applicant.txttime            = txttime.Text;
            Applicant.txtpayprice        = txtpayprice.Text;
            Applicant.txtphone           = txtphone.Text;
            Applicant.txtphone1          = txtphone1.Text;
            //////for cheque
            Applicant.txtchequeowner   = txtchequeowner.Text;
            Applicant.txtaccountnumber = txtaccountnumber.Text;
            Applicant.txtplacepay      = txtplacepay.Text;
            Applicant.txtpricecheque   = txtpricecheque.Text;
            Applicant.txtchequeprice1  = txtchequeprice1.Text;
            Applicant.txtshobe         = txtshobe.Text;
            Applicant.txtcity          = txtcity.Text;
            Applicant.txtchequekarmozd = txtchequekarmozd.Text;
            Dispose();
            f1.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            if (Applicant.txtcode == null || Applicant.txtcode == "")
            {
                MessageBox.Show("لطفا مشخصات تسهیلات گیرنده را وارد سپس ضامن تعین کنید", "خطا", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            frmzamen frm1 = new frmzamen();

            frm1.sZamendNum = "1";
            frm1.MdiParent  = frmmdi.frmMain;
            frm1.Show();
        }
 private void button5_Click(object sender, EventArgs e)
 {
     if (Zamens.Zamen1 == true)
     {
         frmzamen frm1 = new frmzamen();
         frm1.MdiParent  = frmmdi.frmMain;
         frm1.sZamendNum = "2";
         frm1.Show();
     }
     else
     {
         MessageBox.Show("اطلاعات لازم برای ضامن شماره 1 کامل نشده است", "خطا", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }