protected override void ClearItems() { _master.Clear(); Confirmed.Clear(); Probable.Clear(); Suspect.Clear(); NotCase.Clear(); base.ClearItems(); }
protected override void ClearItems() { foreach (CaseViewModel c in this) { c.EpiCaseDefinitionChanging -= item_EpiCaseDefinitionChanging; c.CaseIDChanging -= item_CaseIDChanging; c.CaseSecondaryIDChanging -= item_CaseIDChanging; c.MarkedForRemoval -= item_MarkedForRemoval; c.Inserted -= item_Inserted; c.Updated -= item_Updated; c.ViewerClosed -= item_ViewerClosed; c.SwitchToLegacyEnter -= item_SwitchToLegacyEnter; } _master.Clear(); Confirmed.Clear(); Probable.Clear(); Suspect.Clear(); NotCase.Clear(); base.ClearItems(); }