コード例 #1
0
    public static cEventSuppressor Suppress(this Control control, string eventName)
    {
        cEventSuppressor newControl = null;

        newControl = new cEventSuppressor(control);
        newControl.Suppress(eventName);
        return(newControl);
    }
コード例 #2
0
    public static cEventSuppressor Suppress(this Control control)
    {
        cEventSuppressor newControl = null;

        newControl = new cEventSuppressor(control);
        newControl.Suppress();
        return(newControl);
    }
コード例 #3
0
 //Pause specific Event
 public void PauseEvent(Control control, string eventName, int forTime)
 {
     suppressedControl = new cEventSuppressor(control);
     suppressedControl.Suppress(eventName);
     disableEvent.Tick    += new EventHandler(disableEvent_Tick);
     disableEvent.Interval = (forTime);
     disableEvent.Enabled  = true;
     disableEvent.Start();
 }