public CardViewModel(Tasks Task) { this.Task = Task; Title = this.Task.task_name; DeleteCardCommand = new RelayCommand(DeleteCard); MoveCardRightCommand = new RelayCommand(MoveCardRight, (arg) => NodesListViewModel.CanMoveCardRight(this)); MoveCardLeftCommand = new RelayCommand(MoveCardLeft, (arg) => NodesListViewModel.CanMoveCardLeft(this)); MoveCardUpCommand = new RelayCommand(MoveCardUp, (arg) => NodesListViewModel.CanMoveCardUp(this)); MoveCardDownCommand = new RelayCommand(MoveCardDown, (arg) => NodesListViewModel.CanMoveCardDown(this)); AddLabels(); }
public void MoveCardDown(object parameter = null) { NodesListViewModel.MoveCardDown(this); }
public void DeleteCard(object parameter = null) { NodesListViewModel.DeleteCard(this); }