Beispiel #1
0
        /// <summary>
        /// 下一组图片
        /// </summary>
        public void NextImages()
        {
            if (curImageListTotal == null || this.picIndex < curImageListTotal.total)
            {
                ImageListTotal total = null;
                if (string.IsNullOrEmpty(keyWord))
                {
                    total = ImageHelper.GetImageListTotal(this.picType, this.picIndex, 24);
                }
                else
                {
                    total = WebImage.GetImageListByKW(keyWord, this.picIndex, 24);
                }
                string msg = string.Empty;
                if (total.total == 0)
                {
                    switch (this.picType)
                    {
                    case "wall":
                        msg = "您还没有设置过壁纸"; break;    // 设置壁纸

                    case "love":
                        msg = "您还没有收藏过壁纸"; break;    // 收藏的

                    case "down":
                        msg = "您还没有下载过壁纸"; break;    //下载的

                    default:
                        if (!string.IsNullOrEmpty(keyWord))    //搜索
                        {
                            msg = $"未搜索到与【{keyWord}】相关的壁纸";
                        }
                        break;
                    }
                }
                this.Dispatcher.BeginInvoke(this.OnComplate, new Object[] { total, msg });
            }
            else if (curImageListTotal != null && this.picIndex >= curImageListTotal.total)
            {
                Growl.Info($"已经滑到底了,总共{curImageListTotal.total}张壁纸");
            }
        }