示例#1
0
        private void DiaoController_RotationChanged(RadialController sender, RadialControllerRotationChangedEventArgs args)
        {
            var selectedTool = _diaoController.Menu.GetSelectedMenuItem();

            if (selectedTool == DiaoToolOpacity)
            {
                OpacityChanging?.Invoke(sender, args);
            }
            if (selectedTool == DiaoToolUndoRedo)
            {
                UndoRedo?.Invoke(sender, args);
            }
            if (selectedTool == DiaoToolZoom)
            {
                Zooming?.Invoke(sender, args);
            }
            if (selectedTool == DiaoToolAlignmentGrid)
            {
                AlignmentGridChanging?.Invoke(sender, args);
            }
        }