private async void loadEffect() { await Dispatcher.YieldIdle(); Window.Current.Activate(); ShowPic.Begin(); if (applicationLoaded) { setLoadingFinished(); } else { effectLoaded = true; } }
private void ShowPic() { ShowPic showPic = new ShowPic(); string picPath = showPic.GetPicPath("EXABA4000000003121939P1806260110"); string localPath = Application.StartupPath + "\\answerPic\\"; if (!System.IO.Directory.Exists(localPath)) { System.IO.Directory.CreateDirectory(localPath);//不存在就创建文件夹 } webClient.DownloadFile(picPath, localPath + Path.GetFileName(picPath)); pictureBox1.Image = Image.FromFile(localPath + Path.GetFileName(picPath)); //throw new NotImplementedException(); }