Exemplo n.º 1
0
            private async Task SetImages()
            {
                foreach (var i in CurrentTaskList)
                {
                    Wallpaper.Set(i, Wallpaper.Style.Fill, Keyword, UseTmpPath);
                    if (i.Local == null)
                    {
                        Console.WriteLine(
                            $@"
Photo ID: {i.Id} Author: {i.Photographer}
{i.Height}x{i.Width} URL: {i.Url} 
");
                    }
                    else
                    {
                        Console.WriteLine($"Now local: {i.Local}");
                    }
                    await Task.Delay(TimeoutMS);
                }
            }
Exemplo n.º 2
0
 private static void CurrentDomain_ProcessExit(object sender, EventArgs e)
 {
     Wallpaper.Dispose();
 }