Beispiel #1
0
        public void SaveSync()
        {
            // 刪除 root card
            if (!string.IsNullOrEmpty(_rootcard))
            {
                TrelloHelper.DeleteCard(_key, _token, _rootcard);
            }

            // 把sync xml record 寫到 root card 的 description
            TrelloHelper.CreateCard(_key, _token, _list, _rootname, _xdoc.ToString());
            RefreshCardArray(); // 重新取 card array
        }
Beispiel #2
0
        public void DeleteFolder(string folder)
        {
            JObject obj = cardarray.Children <JObject>()
                          .FirstOrDefault(o => o["name"].ToString() == folder);

            if (obj == null)
            {
                throw new Exception("資料夾不存在");
            }

            TrelloHelper.DeleteCard(_key, _token, obj["id"].Value <string>());
            RefreshCardArray(); // 重新取 card array
        }