示例#1
0
        /// <summary>
        /// Возвращает url случайной картинки
        /// </summary>
        /// <returns></returns>
        public static string GetRandomeImage()
        {
            var url  = string.Empty;
            var list = MainApodObjectOperations.ListImages().ToList();

            if (list.Count > 0)
            {
                Random rnd = new Random();
                int    r   = rnd.Next(list.Count);
                url = list[r].Url;
            }
            return(url);
        }