private void FindNodeInHierarchy(Infragistics.Win.UltraWinTree.TreeNodesCollection nodes, string strSearchValue)
{
for (int iCount = 0; iCount < nodes.Count; iCount++)
{
//System.Diagnostics.Debug.Print(nodes[iCount].Text.ToUpper());
UltraTreeNode childNode = this.GetNodeByKey(nodes[iCount].Key);
if (nodes[iCount].Text.ToUpper().Contains(strSearchValue.ToUpper()))
{
childNode.Parent.Expanded = true;
childNode.Selected = true;
this.ExpandParentNodeInHierarchy(childNode);
m_bNodeFound = true;
this.FormInterface.CloseProgressBar();
return;
}
else
{
childNode.CollapseAll();
m_bNodeFound = false;
}
//nodes[iCount].Expanded = true;
FindNodeInHierarchy(nodes[iCount].Nodes, strSearchValue);
if (m_bNodeFound)
{
this.FormInterface.CloseProgressBar();
return;
}
}
}
원격장비 PORT 열려있는지 확인 (0) | 2012.01.04 |
---|---|
IP Address Calculations with C# (Subnetmasks, Networks, …) (0) | 2011.12.26 |
c# InputBox (0) | 2011.12.14 |
SQL 서버 - DB 테이블의 데이터 변경에 대한 알림 처리 (0) | 2011.11.17 |
File Transaction (0) | 2011.11.17 |