protected virtual void OnFileDrop(FileDropEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref FileDrop, null, null); if (threadSafeHandler != null) { threadSafeHandler(this, e); } FileDropEvent.Raise(e); }
protected virtual void OnFileDrop(FileDropEventArgs e) { var threadSafeHandler = Interlocked.CompareExchange(ref FileDrop, null, null); if (threadSafeHandler != null) { threadSafeHandler(this, e); } FileDropEvent.Raise(e); }