mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* Application.cs * Button.cs * ButtonBase.cs * changelog * ContainerControl.cs * Control.cs * DrawItemEventArgs.cs * DrawItemEventHandler.cs * Font.cs * Form.cs * IAccessible.cs * IContainerControl.cs * Label.cs * MenuItem.cs * MessageBox.cs * NativeWindow.cs * ScrollableControl.cs * Win32.cs * Added some implmentation. Uncommented some stuff. * About to add files to implment stuff uncommented. svn path=/trunk/mcs/; revision=8434
104 lines
2.4 KiB
C#
104 lines
2.4 KiB
C#
//
|
|
// System.Windows.Forms.ColumnClickEventArgs.cs
|
|
//
|
|
// Author:
|
|
// stubbed out by Jaak Simm ([email protected])
|
|
// Implmented by Dennis Hayes <[email protected]>
|
|
//
|
|
// (C) Ximian, Inc., 2002
|
|
//
|
|
|
|
namespace System.Windows.Forms {
|
|
|
|
/// <summary>
|
|
/// Provides data for the ColumnClick event.
|
|
/// </summary>
|
|
public class ColumnClickEventArgs : EventArgs {
|
|
|
|
private int column;
|
|
/// --- Constructor ---
|
|
public ColumnClickEventArgs(int Column) : base()
|
|
{
|
|
column = Column;
|
|
}
|
|
|
|
|
|
/// --- Properties ---
|
|
public int Column {
|
|
get {
|
|
return column;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Equality Operator
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Compares two ColumnClickEventArgs objects. The return value is
|
|
/// based on the equivalence of the Column properties
|
|
/// of the two ColumnClickEventArgs.
|
|
/// </remarks>
|
|
|
|
public static bool operator == (ColumnClickEventArgs ColumnClickEventArgsA , ColumnClickEventArgs ColumnClickEventArgsB)
|
|
{
|
|
return ColumnClickEventArgsA.column == ColumnClickEventArgsB.column;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Inequality Operator
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Compares two ColumnClickEventArgs objects. The return value is
|
|
/// based on the equivalence of the Column properties
|
|
/// of the two ColumnClickEventArgs.
|
|
/// </remarks>
|
|
|
|
public static bool operator != (ColumnClickEventArgs ColumnClickEventArgsA, ColumnClickEventArgs ColumnClickEventArgsB)
|
|
{
|
|
return ColumnClickEventArgsA.column != ColumnClickEventArgsB.column;
|
|
}
|
|
/// <summary>
|
|
/// Equals Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Checks equivalence of this ColumnClickEventArgs and another object.
|
|
/// </remarks>
|
|
|
|
public override bool Equals (object obj)
|
|
{
|
|
if (!(obj is ColumnClickEventArgs))return false;
|
|
return (this == (ColumnClickEventArgs) obj);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// GetHashCode Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Calculates a hashing value.
|
|
/// </remarks>
|
|
// If class has only one proprity, just return the hash code of the proprity.
|
|
public override int GetHashCode ()
|
|
{
|
|
return column.GetHashCode();
|
|
}
|
|
|
|
/// <summary>
|
|
/// ToString Method
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Formats the ColumnClickEventArgs as a string.
|
|
/// </remarks>
|
|
|
|
public override string ToString ()
|
|
{
|
|
return String.Format ("[{0}]", column);
|
|
}
|
|
}
|
|
}
|