private int GetMaxNumLines(IVwEnv vwenv) { ComplexConcPatternNode root = ((ComplexConcPatternSda) vwenv.DataAccess).Root; return GetNumLines(root); }