|
|
@@ -2407,39 +2407,39 @@ namespace OTSIncAReportGrids
|
|
|
}
|
|
|
|
|
|
|
|
|
- //private void SaveParticleslist_select()
|
|
|
- //{
|
|
|
- // ParticleData fielddata = new ParticleData(result.FilePath);
|
|
|
- // List<Particle> particles = fielddata.GetParticleAllList();
|
|
|
-
|
|
|
- // Particleslist_selecttodisplay.Clear();
|
|
|
- // for (int l = 0; l < dgV_ParticlesDevidePage.SelectedRows.Count; l++)
|
|
|
- // {
|
|
|
- // //从事先加载的Bitmap对象的Tag中取出List<string>
|
|
|
- // DataGridViewRow dgvr = dgV_ParticlesDevidePage.SelectedRows[l];
|
|
|
- // Bitmap ls_bp = (Bitmap)dgvr.Cells[2].Value;
|
|
|
- // List<string> list_str = (List<string>)ls_bp.Tag;
|
|
|
- // if (list_str != null)
|
|
|
- // {
|
|
|
- // int i_ls_fieldid = Convert.ToInt32(list_str[0]);
|
|
|
- // int i_ls_particleid = Convert.ToInt32(list_str[1]);
|
|
|
- // foreach (Particle item in particles)
|
|
|
- // {
|
|
|
- // if (i_ls_fieldid == item.FieldId && i_ls_particleid == item.ParticleId)
|
|
|
- // {
|
|
|
- // Particleslist_selecttodisplay.Add(item);
|
|
|
- // break;
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
- // }
|
|
|
- //}
|
|
|
-
|
|
|
- //public List<Particle> GetParticleslist_select()
|
|
|
- //{
|
|
|
- // return Particleslist_selecttodisplay;
|
|
|
- //}
|
|
|
+ private void SaveParticleslist_select()
|
|
|
+ {
|
|
|
+ ParticleData fielddata = new ParticleData(result.FilePath);
|
|
|
+ List<Particle> particles = fielddata.GetParticleAllList();
|
|
|
+
|
|
|
+ Particleslist_selecttodisplay.Clear();
|
|
|
+ for (int l = 0; l < dgV_ParticlesDevidePage.SelectedRows.Count; l++)
|
|
|
+ {
|
|
|
+ //从事先加载的Bitmap对象的Tag中取出List<string>
|
|
|
+ DataGridViewRow dgvr = dgV_ParticlesDevidePage.SelectedRows[l];
|
|
|
+ Bitmap ls_bp = (Bitmap)dgvr.Cells[2].Value;
|
|
|
+ List<string> list_str = (List<string>)ls_bp.Tag;
|
|
|
+ if (list_str != null)
|
|
|
+ {
|
|
|
+ int i_ls_fieldid = Convert.ToInt32(list_str[0]);
|
|
|
+ int i_ls_particleid = Convert.ToInt32(list_str[1]);
|
|
|
+ foreach (Particle item in particles)
|
|
|
+ {
|
|
|
+ if (i_ls_fieldid == item.FieldId && i_ls_particleid == item.ParticleId)
|
|
|
+ {
|
|
|
+ Particleslist_selecttodisplay.Add(item);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<Particle> GetParticleslist_select()
|
|
|
+ {
|
|
|
+ return Particleslist_selecttodisplay;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2513,7 +2513,7 @@ namespace OTSIncAReportGrids
|
|
|
Invalidate();
|
|
|
ToolStripMenuItem_SimilarityReclassification.Enabled = true;
|
|
|
}
|
|
|
- //SaveParticleslist_select();
|
|
|
+ SaveParticleslist_select();
|
|
|
}
|
|
|
}
|
|
|
|