public void AddRow() { rows[RowCount] = new FileRow() { RowIndex = RowCount, RowName = "New Row", RowValue = (int)0, RowType = FileRowType.Int }; }
public bool SetRow(int itemId, FileRow row) { FileItem item = GetItem(itemId); if (item != null) { item.SetRow(row); } return(false); }
public void MoveDown(int RowIndex) { if (rows.ContainsKey(RowIndex)) { FileRow x = rows[RowIndex + 1]; x.RowIndex = RowIndex + 1; FileRow y = rows[RowIndex]; y.RowIndex = RowIndex; rows[RowIndex + 1] = y; rows[RowIndex] = x; } }
public void SetRow(FileRow row) { rows[row.RowIndex] = ConvertRow(row, row.RowType, row.RowValue.ToString()); }