private void CreateNewSegment(eDrag dragMode, float gridDistance) { SMPathSegment newPathSeg = _pathSeg.Append(); newPathSeg.GridDistance = gridDistance; // Create the control _newSegCtl = _ctlBase.AppendSegmentCtl(newPathSeg); //newSegCtl.Size = new Size(_rcHead.Width, _rcHead.Height); _ctlBase.MoveItem(); _newSegCtl.Handoff(_lastMousePosition, dragMode); }
public void Redraw(SMFlowBase flowItem) { if (flowItem != null) { flowItem.DetermineAllPathTargets(); SMCtlBase ctlBase = GetFlowCtl(flowItem); if (ctlBase != null) { ctlBase.MoveItem(); ctlBase.OnChanged(); } } }
public void Redraw() { _flowContainer.DetermineAllChildTargets(); foreach (Control ctl in this.Controls) { SMCtlBase ctlBase = ctl as SMCtlBase; if (ctlBase != null) { ctlBase.MoveItem(); } } //foreach (SMFlowBase flowItem in _flowContainer.FilterByType<SMFlowBase>()) //{ // SMCtlBase ctlItem = GetFlowCtl(flowItem); // if (ctlItem != null) // { // ctlItem.MoveItem(); // } //} }