Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private void OnUnionSelectObject(object sender, ExecutedToolEventArgs e)
 {
     Performance.StartTiming(PerformanceMarks.SelectionChange);
     SelectionOperations.Union(this.Context, GestureData.FromEventArgs(e).ImpliedSource);
     Performance.StopTiming(PerformanceMarks.SelectionChange);
 }