private void treeView_DoubleClick(object sender, EventArgs e)
{
if (pRetorno == true)
{
if (treeView.SelectedNode != null)
{
pOc = new OcorrenciasCategoriasDAO().Buscar(Convert.ToInt32(treeView.SelectedNode.Tag));
this.Close();
}
}
}
It does not fall into the event DoubleClick
, double clicking on every area of the treeview as well as us.