private void AxRenderControl1_RcMouseClickSelect(IPickResult PickResult, IPoint IntersectPoint, gviModKeyMask Mask, gviMouseSelectMode EventSender) { if (PickResult == null) { return; } IRenderPipeLinePickResult pr = PickResult as IRenderPipeLinePickResult; if (pr == null) { return; } GetParam(); IRenderPipeLine rpl = pr.RenderPipeLine; rpl.Color = System.Drawing.Color.Yellow; rpl.Play(playMode, duration, needLoop); currentPLs.Add(rpl); }
private void AxRenderControl1_RcMouseDragSelect(IPickResultCollection PickResults, gviModKeyMask Mask) { if (PickResults == null) { return; } for (int i = 0; i < PickResults.Count; i++) { IRenderPipeLinePickResult pr = PickResults.Get(i) as IRenderPipeLinePickResult; if (pr == null) { continue; } GetParam(); IRenderPipeLine rpl = pr.RenderPipeLine; rpl.Color = System.Drawing.Color.Yellow; rpl.Play(playMode, duration, needLoop); currentPLs.Add(rpl); } }