コード例 #1
0
        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();
        }
コード例 #2
0
 public void MoveCardDown(object parameter = null)
 {
     NodesListViewModel.MoveCardDown(this);
 }
コード例 #3
0
 public void DeleteCard(object parameter = null)
 {
     NodesListViewModel.DeleteCard(this);
 }