コード例 #1
0
 public void AddRow()
 {
     rows[RowCount] = new FileRow()
     {
         RowIndex = RowCount,
         RowName  = "New Row",
         RowValue = (int)0,
         RowType  = FileRowType.Int
     };
 }
コード例 #2
0
        public bool SetRow(int itemId, FileRow row)
        {
            FileItem item = GetItem(itemId);

            if (item != null)
            {
                item.SetRow(row);
            }

            return(false);
        }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 public void SetRow(FileRow row)
 {
     rows[row.RowIndex] = ConvertRow(row, row.RowType, row.RowValue.ToString());
 }