Exemplo n.º 1
0
 private void btnVisualizar_Click(object sender, EventArgs e)
 {
     if (dgvPesquisar.CurrentRow != null)
     {
         int          key  = int.Parse(dgvPesquisar.CurrentRow.Cells[0].Value.ToString());
         FormAddVenda form = new FormAddVenda(venda.Read(key), false);
         form.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("Selecione uma linha para visualizar!", "Ops...", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }