private void MoveArrow(SMPathOut pathOut) { string name = ArrowName(pathOut); if (_containerPanel.Controls.ContainsKey(name)) { ArrowCtl arrowCtl = _containerPanel.Controls[name] as ArrowCtl; if (IsSelected(pathOut) || !pathOut.HasTargetID) { arrowCtl.Hide(); return; } // It has a target and is not selected arrowCtl.MoveIt(_flowItem, pathOut); } }