Example #1
0
 public List<GroupExportResult> Export(GroupExportParam exportParam)
 {
     throw new NotImplementedException();
 }
 private List<GroupExportParam> GetSimulationExportParam()
 {
     List<GroupExportParam> list = new List<GroupExportParam>();
     GroupExportParam item = null;
     foreach (DataGridViewRow row in (IEnumerable) this.dgvSimulation.Rows)
     {
         if ((bool) row.Cells["IsSimGroup"].Value)
         {
             item = new GroupExportParam();
             item.GroupName = row.Cells["GroupName"].Value.ToString();
             list.Add(item);
         }
         else if (row.Cells["ExportItem"].Value.Equals("AverageResult"))
         {
             item.ExportAvgData = row.Cells["Export"].Value.Equals(CheckState.Checked);
         }
         else if (row.Cells["Export"].Value.Equals(CheckState.Checked))
         {
             item.Snapshots.Add((int) row.Tag);
         }
     }
     for (int i = list.Count - 1; i >= 0; i--)
     {
         item = list[i];
         if (!((item.Snapshots.Count != 0) || item.ExportAvgData))
         {
             list.RemoveAt(i);
         }
     }
     return list;
 }