Example #1
0
 protected override void Dispose(bool disposing)
 {
     if (this.EventHandler != null)
     {
         this.EventHandler.Dispose();
         this.EventHandler = null;
     }
     base.Dispose(disposing);
 }
Example #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="action"></param>
 public FocusTracker(Action <A11yElement> action) : base(action)
 {
     this.EventHandler = new EventListenerFactory(null); // listen for all element. it works only for FocusChangedEvent
 }