(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Windows.Forms / WINELib / ControlEventArgs.cs
blob7c8804b109dcd3503f2051d6296b1ab4e4035063
1 //
2 // System.Windows.Forms.ControlEventArgs.cs
3 //
4 // Author:
5 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
6 // implemented for Gtk+ by Rachel Hestilow (hestilow@ximian.com)
7 // Dennis Hayes (dennish@Raytek.com)
8 // Gianandrea Terzi (gianandrea.terzi@lario.com)
10 // (C) Ximian, Inc., 2002
13 namespace System.Windows.Forms {
15 /// <summary>
16 /// Complete.
17 /// </summary>
19 public class ControlEventArgs : EventArgs {
21 #region Fields
22 Control control;
23 #endregion
25 public ControlEventArgs(Control control)
27 this.control = control;
30 #region Public Properties
31 public Control Control
33 get
35 return control;
38 #endregion
40 #region Public Methods
42 /// <summary>
43 /// Equality Operator
44 /// </summary>
45 ///
46 /// <remarks>
47 /// Compares two ControlEventArgs objects.
48 /// The return value is based on the equivalence of
49 /// control Property
50 /// of the two ControlEventArgs.
51 /// </remarks>
52 public static bool operator == (ControlEventArgs ControlEventArgsA, ControlEventArgs ControlEventArgsB)
54 return (ControlEventArgsA.Control == ControlEventArgsB.Control);
58 /// <summary>
59 /// Inequality Operator
60 /// </summary>
61 ///
62 /// <remarks>
63 /// Compares two ControlEventArgs objects.
64 /// The return value is based on the equivalence of
65 /// control Property
66 /// of the two ControlEventArgs.
67 /// </remarks>
68 public static bool operator != (ControlEventArgs ControlEventArgsA, ControlEventArgs ControlEventArgsB)
70 return (ControlEventArgsA.Control != ControlEventArgsB.Control);
74 /// <summary>
75 /// Equals Method
76 /// </summary>
77 ///
78 /// <remarks>
79 /// Checks equivalence of this
80 /// ControlEventArgs and another
81 /// object.
82 /// </remarks>
83 public override bool Equals (object obj)
85 if (!(obj is ControlEventArgs))return false;
86 return (this == (ControlEventArgs) obj);
89 /// <summary>
90 /// GetHashCode Method
91 /// </summary>
92 ///
93 /// <remarks>
94 /// Calculates a hashing value.
95 /// </remarks>
96 [MonoTODO]
97 public override int GetHashCode ()
99 //FIXME: add class specific stuff;
100 return base.GetHashCode();
103 /// <summary>
104 /// ToString Method
105 /// </summary>
107 /// <remarks>
108 /// Formats the object as a string.
109 /// </remarks>
110 [MonoTODO]
111 public override string ToString ()
113 //FIXME: add class specific stuff;
114 return base.ToString() + " ControlEventArgs";
118 #endregion