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

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

            return(false);
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 4
0
 public void SetRow(FileRow row)
 {
     rows[row.RowIndex] = ConvertRow(row, row.RowType, row.RowValue.ToString());
 }