2 // System.Windows.Forms.HelpEventArgs.cs
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Partially completed by Dennis Hayes (dennish@raytek.com)
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
9 // (C) 2002 Ximian, Inc
13 namespace System
.Windows
.Forms
{
19 public class HelpEventArgs
: EventArgs
{
22 private Point mousePos
;
29 public HelpEventArgs(Point mousePos
)
31 this.mousePos
= mousePos
;
32 handled
= false; // Gian : hadled is false, otherwise all events are managed by user by default.
35 #region Public Properties
45 public Point MousePos
{
52 #region Public Methods
59 /// Compares two HelpEventArgs objects.
60 /// The return value is based on the equivalence of
61 /// Handled and MousePos Property
62 /// of the two HelpEventArgs.
64 public static bool operator == (HelpEventArgs HelpEventArgsA
, HelpEventArgs HelpEventArgsB
)
66 return (HelpEventArgsA
.Handled
== HelpEventArgsB
.Handled
) &&
67 (HelpEventArgsA
.MousePos
== HelpEventArgsB
.MousePos
);
72 /// Inequality Operator
76 /// Compares two HelpEventArgs objects.
77 /// The return value is based on the equivalence of
78 /// Handled and MousePos Property
79 /// of the two HelpEventArgs.
81 public static bool operator != (HelpEventArgs HelpEventArgsA
, HelpEventArgs HelpEventArgsB
)
83 return (HelpEventArgsA
.Handled
!= HelpEventArgsB
.Handled
) ||
84 (HelpEventArgsA
.MousePos
!= HelpEventArgsB
.MousePos
);
93 /// Checks equivalence of this
94 /// HelpEventArgs and another
97 public override bool Equals (object obj
)
99 if (!(obj
is HelpEventArgs
))return false;
100 return (this == (HelpEventArgs
) obj
);
104 /// GetHashCode Method
108 /// Calculates a hashing value.
111 public override int GetHashCode ()
113 //FIXME: add class specific stuff;
114 return base.GetHashCode();
122 /// Formats the object as a string.
125 public override string ToString ()
127 //FIXME: add class specific stuff;
128 return base.ToString() + " HelpEventArgs";