private void dgvInformation_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         FrmThesisInfo objInfo = new FrmThesisInfo();
         if (dgvInformation.CurrentRow != null)
         {
             int index = dgvInformation.CurrentRow.Index;
             objInfo.txtCodeOstad.Text = dgvInformation[0 , index].Value.ToString();
             objInfo.txtPersonName.Text = dgvInformation[1, index].Value.ToString();
             objInfo.txtPersonFamily.Text = dgvInformation[2, index].Value.ToString();
             objInfo.txtAccountID.Text = dgvInformation[6, index].Value.ToString();
             objInfo.txtCardID.Text = dgvInformation[7, index].Value.ToString();
             objInfo.CboBankName.Text = dgvInformation[8, index].Value.ToString();
             objInfo.cboShobeh.Text = dgvInformation[9, index].Value.ToString();
             FrmPersonCreateS.DoubleClick = 1;
             this.Close();
         }
     }
     catch(Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 private void btnOstad_Click(object sender, EventArgs e)
 {
     FrmThesisInfo objInfo = new FrmThesisInfo();
     objInfo.ShowDialog();
 }
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     this.Close();
     FrmThesisInfo objInfo = new FrmThesisInfo();
     objInfo.Show();
 }
Beispiel #4
0
 private void ثبتاستادToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmThesisInfo objInfo = new FrmThesisInfo();
     objInfo.Show();
 }
 private void FrmSearchOstad_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         this.Close();
         FrmThesisInfo objInfo = new FrmThesisInfo();
         objInfo.Show();
     }
 }