/// <summary> /// Drops the command can execute. /// </summary> /// <param name="arg">The argument.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> private bool DropCommandCanExecute(DiagramNodeDragDropParameter arg) { return Enabled && !AddRemoveDisabled; }
/// <summary> /// Drops the command action. /// </summary> /// <param name="args">The arguments.</param> private void DropCommandAction(DiagramNodeDragDropParameter args) { AddNode(args.DraggedItem); }