Fixed bug where using ResXResourceWriter filename ctor caused corrupted output
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / LinkLabelLinkClickedEventArgs.cs
index 0dd50fd8f6cbb09a1a7d558455c548d7e4a4591b..0042508a6434983091de377350aedf29ebf9fad2 100644 (file)
 //
 // Authors:
 //     Jordi Mas i Hernandez, jordi@ximian.com
+//  Everaldo Canuto, ecanuto@novell.com
 //
 
-// COMPLETE
-
 using System.Runtime.InteropServices;
 
 namespace System.Windows.Forms 
 {
-
        [ComVisible(true)]
        public class LinkLabelLinkClickedEventArgs : EventArgs 
        {
-               private LinkLabel.Link link;            
-               
+               private MouseButtons button;
+               private LinkLabel.Link link;
+
                public LinkLabelLinkClickedEventArgs (LinkLabel.Link link)
                {
+                       this.button = MouseButtons.Left;
                        this.link = link;
                }
-                               
-               public LinkLabel.Link Link{
-                       get {return link; }
+
+               public LinkLabelLinkClickedEventArgs (LinkLabel.Link link, MouseButtons button)
+               {
+                       this.button = button;
+                       this.link = link;
+               }
+
+               public MouseButtons Button {
+                       get { return this.button; }
+               }
+
+               public LinkLabel.Link Link {
+                       get { return link; }
                }
-               
        }
 }
-