/// <summary> /// Clears the sections and unhook subscriptions. /// </summary> protected internal void ClearSectionsAndUnhookSubscriptions() { EZSections.Clear(); //todo: unhook cell events when after we implement them }
/// <summary> /// Refreshes the sections. /// Will Clear the sections first, cleanup any resources from the old sections, and reset them. /// </summary> protected internal virtual void RefreshSections() { ClearSectionsAndUnhookSubscriptions(); EZSections.AddRange(ConstructSections()); ParentViewController.TableView.ReloadData(); }