mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* Button.cs, ButtonBase.cs, ControlEventArgs.cs, ControlEventHandler.cs, DialogResult.cs, IButtonControl.cs, IContainerControl.cs: Copied over from stubs directory. Preliminary implementation. * Control.cs: Implement ControlCollection, TextChanged, Controls, CreateControlsInstance, ControlAdded, ControlRemoved, ControlLocationChanged, OnControlAdded, OnControlRemoved, Location, LocationChanged, OnLocationChanged, Click, OnClick, and Anchor. (Show): s/EmitShow/Show (CreateWidget): Create a Gtk.Layout. (Text): Call OnTextChanged. * Form.cs (CreateWidget): Add base class contents to window. (Text): Remove, move to OnTextChanged where it's supposed to be. (OnTextChanged): Added. * demo.cs: Test new features (Button, Label). svn path=/trunk/mcs/; revision=5507
37 lines
704 B
C#
37 lines
704 B
C#
//
|
|
// System.Windows.Forms.ControlEventArgs.cs
|
|
//
|
|
// Author:
|
|
// stubbed out by Jaak Simm ([email protected])
|
|
// implemented for Gtk+ by Rachel Hestilow ([email protected])
|
|
|
|
// (C) Ximian, Inc., 2002
|
|
|
|
|
|
namespace System.Windows.Forms
|
|
{
|
|
/// <summary>
|
|
/// Provides data for the ControlAdded and ControlRemoved events.
|
|
/// ToDo note:
|
|
/// - no methods are implemented
|
|
/// </summary>
|
|
|
|
public class ControlEventArgs : EventArgs
|
|
{
|
|
Control control;
|
|
|
|
#region Constructors
|
|
public ControlEventArgs(Control control) {
|
|
this.control = control;
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
public Control Control {
|
|
get { return control; }
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|