日期:2014-05-17 浏览次数:21022 次
foreach (Control control in this.Controls)
{
Type controlType = control.GetType();
if (controlType.Name == "PropertyGridView")
{
control.MouseDoubleClick += ((object sender, MouseEventArgs e) =>
{
MessageBox.Show("Hello.");
});
}
}
public virtual void AddOnValueDoubleClick(EventHandler h)
{
this.AddEventHandler(EVENT_VALUE_DBLCLICK, h);
}
protected virtual void AddEventHandler(object key, Delegate handler)
{
lock (this)
{
if (handler != null)
{
for (EventEntry entry = this.eventList; entry != null; entry = entry.next)