C # TreeView DoubleClick WindowsForms

0
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.

    
asked by anonymous 27.05.2015 / 14:29

0 answers