private void dgvReceive_DoubleClick(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(dgvReceive.CurrentRow.Cells[13].Value.ToString()) || dgvReceive.CurrentRow.Cells[13].Value == null)
     {
         Dialog.frmDialogSelectTypeWeight FrmDialogSelectTypeWeight = new Dialog.frmDialogSelectTypeWeight();
         FrmDialogSelectTypeWeight.ShowDialog();
         if (FrmDialogSelectTypeWeight.DialogResult == DialogResult.Yes)
         {
             checkType(FrmDialogSelectTypeWeight.GetTypeL(), dgvReceive.CurrentRow.Cells[8].Value.ToString(), "", "", "", "");
         }
     }
     else
     {
         checkType(dgvReceive.CurrentRow.Cells[13].Value.ToString(), dgvReceive.CurrentRow.Cells[8].Value.ToString(), dgvReceive.CurrentRow.Cells[10].Value.ToString(),
             dgvReceive.CurrentRow.Cells[11].Value.ToString(), dgvReceive.CurrentRow.Cells[2].Value.ToString(), dgvReceive.CurrentRow.Cells[4].Value.ToString());
     }
 }
示例#2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (String.IsNullOrEmpty(dataGridView1.CurrentRow.Cells[2].Value.ToString()) || dataGridView1.CurrentRow.Cells[2].Value == null)
     {
         Dialog.frmDialogSelectTypeWeight FrmDialogSelectTypeWeight = new Dialog.frmDialogSelectTypeWeight();
         FrmDialogSelectTypeWeight.ShowDialog();
         if (FrmDialogSelectTypeWeight.DialogResult == DialogResult.Yes)
         {
             checkType(FrmDialogSelectTypeWeight.GetTypeL(), dataGridView1.CurrentRow.Cells[0].Value.ToString(), "", "", "", "");
         }
     }
     else
     {
         checkType(dataGridView1.CurrentRow.Cells[2].Value.ToString(), dataGridView1.CurrentRow.Cells[1].Value.ToString(), dataGridView1.CurrentRow.Cells[3].Value.ToString(), dataGridView1.CurrentRow.Cells[4].Value.ToString(), dataGridView1.CurrentRow.Cells[4].Value.ToString(), dataGridView1.CurrentRow.Cells[6].Value.ToString());
     }
 }