private void 圆ToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
hwc_imageWindow.DrawModel = true;
HOperatorSet.SetColor(WindowHandle, new HTuple("green"));
//先将ContextMenuStrip设置位NULL,之后再添加进去
this.hwc_imageWindow.ContextMenuStrip = null;
HTuple row, column, radius;
HOperatorSet.DrawCircle(WindowHandle, out row, out column, out radius);
HObject circle;
HOperatorSet.GenCircle(out circle, row, column, radius);
HOperatorSet.DispObj(circle, WindowHandle);
//恢复ContextMenuStrip的设置
this.hwc_imageWindow.ContextMenuStrip = cnt_rightClickMenu;
hwc_imageWindow.DrawModel = false;
}
catch (Exception ex)
{
Log.SaveError(ex);
}
}