Exemplo n.º 1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     foreach (DataGridViewRow d in dataGridView1.SelectedRows)
     {
         if (d.Cells["confirmName"].Value.ToString() == "อนุมัติ")
         {
             return;
         }
     }
     Transf.TranferCreate c = new TranferCreate(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(), dataGridView1.CurrentRow.Cells["TranferSource"].Value.ToString());
     c.ShowDialog();
     if (c.DialogResult == DialogResult.OK)
     {
         loadGridHd();
     }
 }
Exemplo n.º 2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     Transf.TranferCreate c = new TranferCreate();
     c.ShowDialog();
     if (c.DialogResult == DialogResult.OK) {
         loadGridHd();
     }
 }