将卡从一个列表移动到另一个列表

时间:2018-04-16 19:31:56

标签: manatee.trello

我遇到问题是我的trello板不会从我的下面的代码更新将“CurrentCard”设置为我的trello板上的列表4。我看了Manatee.Trello Moving Cards,但我不确定我是否跟随。

var CurrentCard = Trelloboard.Lists[index].Cards[CardIndex];
CurrentCard.Position = 4;

1 个答案:

答案 0 :(得分:0)

            var otherList  = Trelloboard.Lists.Last();//The List to which you want to move the card to.

            var CurrentCard = Trelloboard.Lists[index].Cards[0];// The current card you want to move

            CurrentCard.List = otherList;//applying the "otherList" to the "CurrentCard"'s List attribute.