Exemplo n.º 1
0
        async void OnSelect(object sender, Mi e)
        {
            var selected = _lv.SelectedRows.ToList();

            if (selected.Count == 0)
            {
                Kit.Warn("未选择关键字!");
                return;
            }

            List <Postkeyword> ls = new List <Postkeyword>();

            foreach (var row in selected)
            {
                ls.Add(new Postkeyword(PostID: _postID, Keyword: row.Str("id")));
            }
            if (await AtPublish.BatchSave(ls))
            {
                Close(true);
            }
        }
Exemplo n.º 2
0
        async void OnSelect(object sender, Mi e)
        {
            var selected = _lv.SelectedRows.ToList();

            if (selected.Count == 0)
            {
                Kit.Warn("未选择专辑!");
                return;
            }

            var ls = new List <Postalbum>();

            foreach (var row in selected)
            {
                ls.Add(new Postalbum(PostID: _postID, AlbumID: row.ID));
            }
            if (await AtPublish.BatchSave(ls))
            {
                Close(true);
            }
        }