コード例 #1
0
ファイル: Program.cs プロジェクト: jayhill/PechaKuchApp
        static void Main(string[] args)
        {
            var downloader = new Downloader();
            var presentations = downloader.DownloadJson<Presentation[]>(new Uri("http://app.pechakuchaavl.org/api/app/presentations"));
            var presentationLoader = new PresentationLoader(presentations[0], 5);
            presentationLoader.NextSlide += (o, e) =>
            {
                Console.WriteLine("Slide loaded with [{0}] bytes", e.ImageStream.Length);
            };

            presentationLoader.Run();

            Console.ReadLine();
        }