コード例 #1
0
ファイル: NewConnectionHandle.cs プロジェクト: thbin/TraceLab
 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);
 }
コード例 #2
0
ファイル: NewConnectionHandle.cs プロジェクト: thbin/TraceLab
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }