public override void InvokeStart(MouseEvent ev) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD(ev.X, ev.Y); m_connection.StartPoint = new PointD(ev.X, ev.Y); m_connection.ConnectStart(Owner.ConnectorAt(ev.X, ev.Y)); m_connection.UpdateConnection(); ev.View.Drawing.Add(m_connection); ev.View.ClearSelection(); ev.View.AddToSelection(m_connection); m_handle = ev.View.FindHandle(ev.X, ev.Y); }
public override void InvokeStart(double x, double y, IDrawingView view) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD(x, y); m_connection.StartPoint = new PointD(x, y); m_connection.ConnectStart(Owner.ConnectorAt(x, y)); m_connection.UpdateConnection(); view.Drawing.Add(m_connection); view.ClearSelection(); view.AddToSelection(m_connection); m_handle = view.FindHandle(x, y); }
public override void InvokeStart(double x, double y, IDrawingView view) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD (x, y); m_connection.StartPoint = new PointD (x, y); m_connection.ConnectStart (Owner.ConnectorAt(x, y)); m_connection.UpdateConnection(); view.Drawing.Add(m_connection); view.ClearSelection(); view.AddToSelection(m_connection); m_handle = view.FindHandle(x, y); }
public override void InvokeStart(MouseEvent ev) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD (ev.X, ev.Y); m_connection.StartPoint = new PointD (ev.X, ev.Y); m_connection.ConnectStart (Owner.ConnectorAt(ev.X, ev.Y)); m_connection.UpdateConnection(); ev.View.Drawing.Add(m_connection); ev.View.ClearSelection(); ev.View.AddToSelection(m_connection); m_handle = ev.View.FindHandle(ev.X, ev.Y); }