public void EnableMouseClicks() { if ((this.Filter != null)) { Application.RemoveMessageFilter(this.Filter); this.Filter = null; } }
public void DisableMouseClicks() { if (this.Filter == null) { this.Filter = new MouseClickMessageFilter(); Application.AddMessageFilter(this.Filter); } }