// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace System.Windows.Forms;

/// <summary>
///  Provides data for the <see cref="LinkLabel.OnLinkClicked"/> event.
/// </summary>
public class LinkLabelLinkClickedEventArgs : EventArgs
{
    /// <summary>
    ///  Initializes a new instance of the <see cref="LinkLabelLinkClickedEventArgs"/> class, given the link.
    /// </summary>
    public LinkLabelLinkClickedEventArgs(LinkLabel.Link? link)
        : this(link, MouseButtons.Left)
    {
    }

    public LinkLabelLinkClickedEventArgs(LinkLabel.Link? link, MouseButtons button)
    {
        Link = link;
        Button = button;
    }

    /// <summary>
    ///  Gets the <see cref="LinkLabel.Link"/> that was clicked.
    /// </summary>
    public LinkLabel.Link? Link { get; }

    /// <summary>
    ///  Gets the mouseButton which causes the link to be clicked
    /// </summary>
    public MouseButtons Button { get; }
}
