public Begin ( IInputHandler handler ) : void | ||
handler | IInputHandler | |
return | void |
public void Begin(IInputHandler handler)
{
if (handler != null)
{
InputHandlers.Push(handler);
}
}
public override void OnMouseDown(MouseEvent mouseEvent) { base.OnMouseDown(mouseEvent); if (ViewModel.Disabled) { return; } if (mouseEvent.MouseButton == 0 && (ViewModel.Direction == ConnectorDirection.Output || ViewModel.Direction == ConnectorDirection.TwoWay)) { mouseEvent.Begin(new ConnectionHandler(ViewModel.DiagramViewModel, ViewModel)); mouseEvent.NoBubble = true; return; } }