void IBMDSwitcherTransitionParametersCallback.Notify(_BMDSwitcherTransitionParametersEventType EventType)
        {
            switch (EventType)
            {
            case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionSelectionChanged):
                if (NextTransitionSelectionChanged != null)
                {
                    NextTransitionSelectionChanged(this, null);
                }
                break;

            case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionStyleChanged):
                if (NextTransitionStyleChanged != null)
                {
                    NextTransitionStyleChanged(this, null);
                }
                break;

            case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionSelectionChanged):
                if (TransitionSelectionChanged != null)
                {
                    TransitionSelectionChanged(this, null);
                }
                break;

            case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionStyleChanged):
                if (TransitionStyleChanged != null)
                {
                    TransitionStyleChanged(this, null);
                }
                break;
            }
        }
        void IBMDSwitcherTransitionParametersCallback.Notify(_BMDSwitcherTransitionParametersEventType eventType)
        {
            switch (eventType)
            {
            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionStyleChanged:
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionStyleChanged:
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionSelectionChanged:
                OnTransitionSelectionChanged?.Invoke(this);
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionSelectionChanged:
                break;

            default:
                break;
            }
        }
Example #3
0
        void IBMDSwitcherTransitionParametersCallback.Notify(_BMDSwitcherTransitionParametersEventType eventType)
        {
            this._switcherTransitionParametersEventArgs = new SwitcherTransitionParametersEventArgs();
            switch (eventType)
            {
            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionSelectionChanged:
                SwitcherTransitionParametersEventTypeNextTransitionSelectionChanged?.Invoke(this, this._switcherTransitionParametersEventArgs);
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionStyleChanged:
                SwitcherTransitionParametersEventTypeNextTransitionStyleChanged?.Invoke(this, this._switcherTransitionParametersEventArgs);
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionSelectionChanged:
                SwitcherTransitionParametersEventTypeTransitionSelectionChanged?.Invoke(this, this._switcherTransitionParametersEventArgs);
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionStyleChanged:
                SwitcherTransitionParametersEventTypeTransitionStyleChanged?.Invoke(this, this._switcherTransitionParametersEventArgs);
                break;
            }
        }
        public void Notify(_BMDSwitcherTransitionParametersEventType eventType)
        {
            switch (eventType)
            {
            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionStyleChanged:
            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionSelectionChanged:
                _mediator.Publish(new NextTransitionNotify());
                break;

            case _BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionStyleChanged:
                _transitionParameters.GetTransitionStyle(out _BMDSwitcherTransitionStyle style);
                _mediator.Publish(new TransitionStyleNotify {
                    Current = style
                });
                break;

            default:
                _mediator.Publish(new SwitcherMessageNotify {
                    Message = eventType.ToString()
                });
                break;
            }
        }
Example #5
0
        void IBMDSwitcherTransitionParametersCallback.Notify(_BMDSwitcherTransitionParametersEventType EventType)
        {
            switch (EventType)
            {
                case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionSelectionChanged):
                    if (NextTransitionSelectionChanged != null)
                        NextTransitionSelectionChanged(this, null);
                    break;

                case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeNextTransitionStyleChanged):
                    if (NextTransitionStyleChanged != null)
                        NextTransitionStyleChanged(this, null);
                    break;

                case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionSelectionChanged):
                    if (TransitionSelectionChanged != null)
                        TransitionSelectionChanged(this, null);
                    break;

                case (_BMDSwitcherTransitionParametersEventType.bmdSwitcherTransitionParametersEventTypeTransitionStyleChanged):
                    if (TransitionStyleChanged != null)
                        TransitionStyleChanged(this, null);
                    break;
            }
        }