コード例 #1
0
        public NotificationsDisplaySupervisor(Dispatcher dispatcher,
                                              IPositionProvider positionProvider,
                                              INotificationsLifetimeSupervisor lifetimeSupervisor,
                                              DisplayOptions displayOptions,
                                              IKeyboardEventHandler keyboardEventHandler)
        {
            _dispatcher           = dispatcher;
            _positionProvider     = positionProvider;
            _lifetimeSupervisor   = lifetimeSupervisor;
            _displayOptions       = displayOptions;
            _keyboardEventHandler = keyboardEventHandler;

            _lifetimeSupervisor.ShowNotificationRequested  += LifetimeSupervisorOnShowNotificationRequested;
            _lifetimeSupervisor.CloseNotificationRequested += LifetimeSupervisorOnCloseNotificationRequested;

            _positionProvider.UpdatePositionRequested       += PositionProviderOnUpdatePositionRequested;
            _positionProvider.UpdateEjectDirectionRequested += PositionProviderOnUpdateEjectDirectionRequested;
            _positionProvider.UpdateHeightRequested         += PositionProviderOnUpdateHeightRequested;
        }
コード例 #2
0
 public void SetKeyboardEventHandler(IKeyboardEventHandler keyboardEventHandler)
 {
     _keyboardEventHandler = keyboardEventHandler;
 }