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