|
@@ -49,14 +49,11 @@ namespace OTSIncAReportGraph.Controls
|
|
|
}
|
|
|
public enum RightButtonMenu
|
|
|
{
|
|
|
- Include=0,
|
|
|
-
|
|
|
- MoveSEMToParticle=1,
|
|
|
- CopyImage=2,
|
|
|
- OriginalSplicing= 3,
|
|
|
+ MoveSEMToParticle=0,
|
|
|
+ CopyImage=1,
|
|
|
+ OriginalSplicing= 2,
|
|
|
DeleteParticle=4,
|
|
|
- ParticleSegmentation=5,
|
|
|
- ImportSTDDb=6
|
|
|
+ ParticleSegmentation=5
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 选择导出的图片是原图还是颗粒渲染后的图片
|
|
@@ -1161,7 +1158,6 @@ namespace OTSIncAReportGraph.Controls
|
|
|
|
|
|
|
|
|
bool ifClickOnParticle=false;
|
|
|
- bool ifThereIsSelectedParticle = false;
|
|
|
|
|
|
|
|
|
foreach (DisplayParticle item in m_list_allDPart)
|
|
@@ -1169,7 +1165,6 @@ namespace OTSIncAReportGraph.Controls
|
|
|
if (true == imageDisHelper.WhetherInRange(item, e.Location))
|
|
|
{
|
|
|
ifClickOnParticle = true;
|
|
|
- CMenuStrip.Items[(int)RightButtonMenu.Include].Visible = false;
|
|
|
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.CopyImage].Visible = false;
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.OriginalSplicing].Visible = false;
|
|
@@ -1181,40 +1176,18 @@ namespace OTSIncAReportGraph.Controls
|
|
|
|
|
|
DisplayParticle dp = (DisplayParticle)item;
|
|
|
|
|
|
- CMenuStrip.Items[(int)RightButtonMenu.ImportSTDDb].Visible = true;
|
|
|
-
|
|
|
-
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.ParticleSegmentation].Visible = true;
|
|
|
m_ParticleSegmentation.ParticleData = dp.objParticleData;
|
|
|
}
|
|
|
- if (((DisplayParticle)item).IsSelect)
|
|
|
- {
|
|
|
- ifThereIsSelectedParticle = true;
|
|
|
- }
|
|
|
}
|
|
|
if (ifClickOnParticle == false)
|
|
|
{
|
|
|
- if (ifThereIsSelectedParticle)
|
|
|
- {
|
|
|
-
|
|
|
- CMenuStrip.Items[(int)RightButtonMenu.Include].Visible = true;
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- CMenuStrip.Items[(int)RightButtonMenu.Include].Visible = false;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.DeleteParticle].Visible = false;
|
|
|
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.CopyImage].Visible = true;
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.OriginalSplicing].Visible = true;
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.MoveSEMToParticle].Visible = false;
|
|
|
CMenuStrip.Items[(int)RightButtonMenu.ParticleSegmentation].Visible = false;
|
|
|
- CMenuStrip.Items[(int)RightButtonMenu.ImportSTDDb].Visible = false;
|
|
|
}
|
|
|
var m_RptConfigFile = RptConfigFile.GetRptConfig(); //报表程序的配置文件
|
|
|
if (m_RptConfigFile.Systype == OTS_SysType_ID.CleannessA)
|
|
@@ -1245,13 +1218,6 @@ namespace OTSIncAReportGraph.Controls
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- private void ToolStripMenuItem_selected_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
- frmReportApp.selectedRegion = m_SelectTool.Rect;
|
|
|
- SetParticlesSelected();
|
|
|
- }
|
|
|
-
|
|
|
void SetParticlesSelected()
|
|
|
{
|
|
|
List<DisplayParticle> selectedParts = new List<DisplayParticle>();
|