示例#1
0
 public void UpdateRows()
 {
     if (Rows == null)
     {
         Rows = GetRows("dataGridOrgs");
     }
     for (int rowLine = 0; rowLine < Rows.Count; rowLine++)
     {
         IOrganismo o = Rows[rowLine].Cells[0].Value as IOrganismo;
         if (o != null)
         {
             int colIndex = 1;
             Rows[rowLine].Cells[colIndex++].Value = o.oid;
             Rows[rowLine].Cells[colIndex++].Value = o.hash();
             Rows[rowLine].Cells[colIndex++].Value = o.getMemorySize();
             Rows[rowLine].Cells[colIndex++].Value = o.getError();
             Rows[rowLine].Cells[colIndex++].Value = o.sp();
         }
     }
 }