コード例 #1
0
ファイル: ScreenshotForm.cs プロジェクト: chanket/Worker
 private async Task UpdateScreenshot()
 {
     try
     {
         using (ScreenshotHelper helper = new ScreenshotHelper(Client))
         {
             pictureBox1.Image = new Bitmap(new MemoryStream(await helper.StartAsync()));
         }
     }
     catch (Exception ex)
     {
         if (!this.IsDisposed)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }