private void PrintObjectCol(TreeNodeCollection nodes, ObjectCol col, bool l) { if (nodes.Count > 0) { nodes.Clear(); } int c; if (col.Count < 100) { c = col.Count; } else { c = 100; } var arNodes = new TreeNode[c]; int i = 0; int j = 0; nodes.Clear(); foreach (NamedObject o in col) { arNodes[j] = CreateObjNode(o, l); if ((j == 99)) { nodes.AddRange(arNodes); j = -1; if ((col.Count - i < 100)) { // TODO: NotImplemented statement: ICSharpCode.SharpRefactory.Parser.AST.VB.ReDimStatement } else if (col.Count - 1 == i) { return; } } j += 1; i += 1; System.Windows.Forms.Application.DoEvents(); } nodes.AddRange(arNodes); }
/// <summary> /// 生成Enums /// </summary> /// <param name="config"></param> /// <param name="tables"></param> /// <returns></returns> protected abstract bool GenerateEnums(GenerateConfig config, ObjectCol tables);