Example #1
0
        private void btnCanvas_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(dgvDados.CurrentRow.Cells[0].Value.ToString());
            frmCanvasInterativo canvas = new frmCanvasInterativo(id);

            canvas.ShowDialog();
        }
Example #2
0
 private void btnCanvas_Click(object sender, EventArgs e)
 {
     if (dgvDados.SelectedRows.Count == 1)
     {
         int id = Convert.ToInt32(dgvDados.CurrentRow.Cells[0].Value.ToString());
         frmCanvasInterativo canvas = new frmCanvasInterativo(id);
         canvas.ShowDialog();
     }
     else
     {
         MessageBox.Show("Selecione apenas um Registro!!!");
     }
 }