-
-
Save kg/4962353 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DrawingFeature : Feature { | |
private Drawing drawing_; | |
public event EventHandler DrawingChanged; | |
private NonBlockingMutex inDrawingChanged_; | |
protected void OnDrawingChanged() | |
{ | |
using (inDrawingChanged_.AcquireOrThrow()) { | |
if (DrawingChanged != null) { | |
DrawingChanged(this, EventArgs.Empty); | |
} | |
OnFeatureChanged(); | |
} | |
} | |
public Drawing Drawing { | |
get | |
{ | |
return drawing_; | |
} | |
set | |
{ | |
drawing_ = value; | |
OnDrawingChanged(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment