コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 public void AddRow(QBaseRow row)
 {
     row.SetCurIndex(this.rows.Count + 1);
     row.Table = this.Table;
     this.rows.Add(row);
 }
コード例 #3
0
 /// <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);
 }