void ExecuteTranslate(object o) { var ac = new TranslatePointsClickAction(CurrentPolygon); _currentClickableAction = ac; _currentUpdatableMouseAction = ac; ac.ActionDone += afterAction; }
void ExecuteRejectAction(object o) { if (_currentClickableAction != null) { _currentClickableAction.Reject(); } _currentUpdatableMouseAction = null; if (_currentClickableAction != null) { _currentClickableAction.Dispose(); } _currentClickableAction = null; if (CurrentUpdatableMouseAction != null) { CurrentUpdatableMouseAction.Dispose(); } }