AutoRankEditor.MainForm.CheckIfNodeExists C# (CSharp) Méthode

CheckIfNodeExists() static private méthode

static private CheckIfNodeExists ( TreeNode node, string text ) : bool
node System.Windows.Forms.TreeNode
text string
Résultat bool
        static bool CheckIfNodeExists( TreeNode node, string text ) {
            // ReSharper disable LoopCanBeConvertedToQuery
            foreach( TreeNode subNode in node.Nodes ) {
                if( (subNode is ConditionNode) && (subNode as ConditionNode).Field.GetLongString() == text ) {
                    return true;
                }
            }
            // ReSharper restore LoopCanBeConvertedToQuery
            return false;
        }