Exemplo n.º 1
0
 private void btnIrEspelhoVendas_Click_1(object sender, EventArgs e)
 {
     if (txtIdVenda.ToString() != "")
     {
         int id = 0;
         id = Convert.ToInt32(txtIdVenda.Text);
         EspelhoVendas abrir = new EspelhoVendas(id);
         abrir.Show();
     }
 }
Exemplo n.º 2
0
 private void dgvVendas_DoubleClick(object sender, EventArgs e)
 {
     try {
         int id = 0;
         txtIdVenda.Text = dgvVendas.SelectedRows[0].Cells["id_venda"].Value.ToString();
         id = Convert.ToInt32(txtIdVenda.Text);
         EspelhoVendas abrir = new EspelhoVendas(id);
         abrir.Show();
     }
     catch
     {
     }
 }