/// <summary> /// 递旭获取子行 /// </summary> /// <param name="row"></param> private void GetRowCount(QBaseRow row) { if (row.leafRows.Count == 0) { rowCount++; } else { foreach (QBaseRow child in row.leafRows) this.GetRowCount(child); } }
public void AddRow(QBaseRow row) { row.SetCurIndex(this.rows.Count + 1); row.Table = this.Table; this.rows.Add(row); }
/// <summary> /// 添加子行 /// </summary> /// <param name="leafRow"></param> public void AddLeafRow(QBaseRow leafRow) { leafRow.Table = this.Table; leafRow.curIndex = this.Table.Rows.Count + 1; leafRow.Parent = this; this.LeafRows.Add(leafRow); }