} // dump /// <summary> /// Dump Row /// </summary> /// <param name="pd">Print Data</param> /// <param name="row">row</param> private static void DumpRow(PrintData pd, int row) { if (row < 0 || row >= pd.GetRowCount()) { return; } pd.SetRowIndex(row); if (pd.GetNodeCount() == 0) { return; } for (int i = 0; i < pd.GetNodeCount(); i++) { Object obj = pd.GetNode(i); if (obj == null) { } else if (obj.GetType() == typeof(PrintData)) { Dump((PrintData)obj); } else if (obj.GetType() == typeof(PrintDataElement)) { } } } // dumpRow
} // dump /// <summary> /// Dump all PrintData - header and rows /// </summary> /// <param name="pd">Print Data</param> private static void Dump(PrintData pd) { DumpHeader(pd); for (int i = 0; i < pd.GetRowCount(); i++) { DumpRow(pd, i); } } // dump
} // dump /// <summary> /// Dump PrintData Header /// </summary> /// <param name="pd">Print Data</param> private static void DumpHeader(PrintData pd) { if (pd.GetColumnInfo() != null) { for (int i = 0; i < pd.GetColumnInfo().Length; i++) { //log.config(i + ": " + pd.getColumnInfo()[i]); } } } // dump
} // getLineLevel /// <summary> /// Add Parent node to Data Structure row /// </summary> /// <param name="parent">parent</param> public void AddNode(PrintData parent) { if (parent == null) { throw new ArgumentException("Parent cannot be null"); } if (_nodes == null) { AddRow(false, 0); } _nodes.Add(parent); } // addNode