private void OnSelectOnlyObject(object sender, ExecutedToolEventArgs e) { GestureData gestureData = GestureData.FromEventArgs(e); if (gestureData.ImpliedSource == null) { return; } Performance.StartTiming(PerformanceMarks.SelectionChange); SelectionOperations.SelectOnly(this.Context, gestureData.ImpliedSource); Performance.StopTiming(PerformanceMarks.SelectionChange); }
private void OnUnionSelectObject(object sender, ExecutedToolEventArgs e) { Performance.StartTiming(PerformanceMarks.SelectionChange); SelectionOperations.Union(this.Context, GestureData.FromEventArgs(e).ImpliedSource); Performance.StopTiming(PerformanceMarks.SelectionChange); }