コード例 #1
0
 private void btnCreate2_Click(object sender, EventArgs e)
 {
     x = 110;
     FrmPersonCreate1 objCreate1 = new FrmPersonCreate1();
     objCreate1.Show();
     this.Close();
 }
コード例 #2
0
 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     FrmPersonCreate1 objCreate = new FrmPersonCreate1();
     objCreate.ShowDialog();
     if (FrmPersonCreateS.DoubleClick == 1)
     {
         int index = objCreate.dgvInformation.CurrentRow.Index;
         txtCodeOstad.Text = objCreate.dgvInformation[0, index].Value.ToString();
         txtPersonName.Text = objCreate.dgvInformation[1, index].Value.ToString();
         txtPersonFamily.Text = objCreate.dgvInformation[2, index].Value.ToString();
         txtAccountID.Text = objCreate.dgvInformation[6, index].Value.ToString();
         txtCardID.Text = objCreate.dgvInformation[7, index].Value.ToString();
         CboBankName.Text = objCreate.dgvInformation[8, index].Value.ToString();
         cboShobeh.Text = objCreate.dgvInformation[9, index].Value.ToString();
     }
     FrmPersonCreateS.DoubleClick = 0;
 }