Esempio n. 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);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Fires the OpacityChanging event when the opacity is being changed.
 /// </summary>
 protected virtual void OnOpacityChanging()
 {
     OpacityChanging?.Invoke(this, EventArgs.Empty);
 }