void OnActiveToolChanging() { if (ToolManager.IsActiveTool(this)) { polyUtility.StopEditing(); } }
void OnActiveToolChanged() { var scenePolygon = target as ScenePolygon; if (ToolManager.IsActiveTool(this) && IsAvailable() && scenePolygon) { polyUtility.StartEditing(scenePolygon); } }
void OnSelectionChanged() { if (ToolManager.IsActiveTool(this)) { polyUtility.StopEditing(); } var scenePolygon = target as ScenePolygon; if (ToolManager.IsActiveTool(this) && IsAvailable() && scenePolygon != null) { polyUtility.StartEditing(scenePolygon); } }