private void App_Expired(object sender, EventArgs e) { var app = (TemporaryAppItemViewModel)sender; if (Apps.Contains(app)) { app.Expired -= App_Expired; Apps.Remove(app); } }