mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
Event handling best practice
Also make consistent
This commit is contained in:
@@ -355,8 +355,11 @@ namespace CefSharp.Offscreen
|
||||
bitmap = BitmapSourceToBitmap2(Imaging.CreateBitmapSourceFromMemorySection(bitmapInfo.FileMappingHandle,
|
||||
bitmapInfo.Width, bitmapInfo.Height, PixelFormats.Bgra32, stride, 0));
|
||||
|
||||
if (NewScreenshot != null)
|
||||
NewScreenshot(this, EventArgs.Empty);
|
||||
var handler = NewScreenshot;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user