src/Lurker/MouseLurker.cs
/// <summary>
/// Handles the MouseLeftButtonUp event of the MouseHookService control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
Handles the MouseLeftButtonUp event of the MouseHookService control.
Handles the MouseLeftButtonUp event of the MouseHookService control .
private async void MouseHook_LeftButtonUp(object sender, MouseMessageEventArgs e)
        {
            if (e.Shift && this._settingsService.MapEnabled)
            {
                await Task.Delay(100);
                var item = await this.ParseItem();
                if (item != null)
                {
                    this.ItemIdentified?.Invoke(this, item);
                }
                ClipboardHelper.ClearClipboard();
            }
            this.MouseLeftButtonUp?.Invoke(this, e);
        }
private async void MouseHook_LeftButtonUp ( object sender , MouseMessageEventArgs e ) { if ( e . Shift && this . _settingsService . MapEnabled ) { await Task . Delay ( 100 ) ; var item = await this . ParseItem ( ) ; if ( item != null ) { this . ItemIdentified ? . Invoke ( this , item ) ; } ClipboardHelper . ClearClipboard ( ) ; } this . MouseLeftButtonUp ? . Invoke ( this , e ) ; }
Handles the MouseLeftButtonUp event of the MouseHookService control.
Handles the MouseLeftButtonUp event of the MouseHookService control .
sender
object
The source of the event.
The source of the event .
e
MouseMessageEventArgs
The  instance containing the event data.
The instance containing the event data .