Apricot.Balloon.OnMouseLeave C# (CSharp) Method

OnMouseLeave() private method

private OnMouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void
        private void OnMouseLeave(object sender, MouseEventArgs e)
        {
            if (sender == this.CloseImage)
            {
                this.closeIsHover = false;
            }
            else if (sender == this.BackImage)
            {
                this.backIsHover = false;
            }
            else if (sender == this.UpImage)
            {
                this.upIsHover = false;
            }
            else if (sender == this.DownImage)
            {
                this.downIsHover = false;
            }
            else if (sender == this.MessageCanvas)
            {
                this.attachmentsAreHover = false;
            }
            else if (sender == this.InspectorImage)
            {
                this.imageIsHover = false;

                if (!this.switchTimer.IsEnabled && this.inspectorEntry != null && this.inspectorEntry.HasMultipleImages)
                {
                    this.switchTimer.Start();
                }
            }
            else
            {
                this.isPinned = false;

                if (this.messageCollection.Count > 0 && this.historyPoint.HasValue && this.historyPoint.Value < this.messageCollection.Count)
                {
                    this.waitTimer.Interval = this.messageCollection[this.historyPoint.Value].Duration;
                }
                else
                {
                    this.waitTimer.Interval = TimeSpan.Zero;
                }

                this.waitTimer.Start();
            }
        }