/// <summary> /// Constructor. /// </summary> public PrintTileController(PrintViewTile tile, IViewerShortcutManager shortcutManager) { Platform.CheckForNullReference(tile, "tile"); Platform.CheckForNullReference(shortcutManager, "shortcutManager"); _tile = tile; _tile.ContextMenuRequested += ProcessExplicitContextMenuRequest; _selectedOnThisClick = false; _capturedOnThisClick = false; _shortcutManager = shortcutManager; _delayedContextMenuRequestPublisher = new DelayedEventPublisher(ProcessDelayedContextMenuRequest, 300); }
/// <summary> /// Constructor. /// </summary> public TileController(Tile tile, IViewerShortcutManager shortcutManager) { Platform.CheckForNullReference(tile, "tile"); Platform.CheckForNullReference(shortcutManager, "shortcutManager"); _tile = tile; _tile.ContextMenuRequested += ProcessExplicitContextMenuRequest; _selectedOnThisClick = false; _capturedOnThisClick = false; _shortcutManager = shortcutManager; _contextMenuDelayInMilliseconds = InputManagementSettings.Default.ContextMenuDelay; _delayedContextMenuRequestPublisher = new DelayedEventPublisher(ProcessDelayedContextMenuRequest, _contextMenuDelayInMilliseconds); }
/// <summary> /// Constructor. /// </summary> public TileController(Tile tile, IViewerShortcutManager shortcutManager) { Platform.CheckForNullReference(tile, "tile"); Platform.CheckForNullReference(shortcutManager, "shortcutManager"); _tile = tile; _tile.ContextMenuRequested += ProcessExplicitContextMenuRequest; _selectedOnThisClick = false; _capturedOnThisClick = false; _shortcutManager = shortcutManager; _delayedContextMenuRequestPublisher = new DelayedEventPublisher(ProcessDelayedContextMenuRequest, InputManagementSettings.Default.ContextMenuDelay); }