C# - TreeView Comparing Nodes -


i want create treeview list squares found in image along colors in each quadrant. if sees same colored square add anyway because image processing each frame.

my problem need compare if color of child node exists in treeview. if exists, dont add node.

      if (quadrado_detetado == 1)         {              tv_lista_quadrados.nodes.add("quadrado detetado " +                                           increamenta_listagem_quadrados);              if (tv_lista_quadrados.nodes.count > 1)             {                 //compare current child node child nodes in treeview ??         if(//doesnt exist)       //add                      tv_lista_quadrados.nodes[increamenta_listagem_quadrados].nodes.add                      ("cores: " + cores_dos_pontos_medios[0] + " " +                                   cores_dos_pontos_medios[1] + " " +                                   cores_dos_pontos_medios[2] + " " +                                   cores_dos_pontos_medios[3] + " ");                 }                  else                 {                    //remove node ??                 }             }              increamenta_listagem_quadrados++;         }      } 

quadrado_detetado integer tells when square found.

cores_dos_pontos_medios string array includes 4 colors found in quadrants.

can me? how search child nodes , compare?

i keep flat list representation of tree in memory, , search through check if child nodes match. when add node tree, add list well.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -