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; }
public void SetKeyboardEventHandler(IKeyboardEventHandler keyboardEventHandler) { _keyboardEventHandler = keyboardEventHandler; }