void setControls(System.Drawing.Image image) { if (!Dispatcher.CheckAccess()) { Dispatcher.BeginInvoke(new Action <System.Drawing.Image>(setControls), image); } else { setImage(image != null?image.GetBitmapSource():null); } }
void setControls(System.Drawing.Image image) { if (!Dispatcher.CheckAccess()) { Dispatcher.BeginInvoke(new Action <System.Drawing.Image>(setControls), image); } else { setImage(image != null?image.GetBitmapSource():null); } }