Пример #1
0
 public void EnableMouseClicks()
 {
     if ((this.Filter != null))
     {
         Application.RemoveMessageFilter(this.Filter);
         this.Filter = null;
     }
 }
Пример #2
0
 public void DisableMouseClicks()
 {
     if (this.Filter == null)
     {
         this.Filter = new MouseClickMessageFilter();
         Application.AddMessageFilter(this.Filter);
     }
 }