/// <summary> /// Resets the invocation list of all events within the class. /// </summary> /// <param name="cell">The cell object.</param> /// <param name="includeChildren">Whether or not to also nullify the events of any child elements.</param> public static void NullifyEvents(this IGridCell cell, bool includeChildren) { cell.NullifyEvents(); if (includeChildren) { foreach (var control in cell.Children.OfType <IControl>()) { control.NullifyEvents(); } } }