/// ------------------------------------------------------------------------------------ /// <summary> /// Deletes the list of people stored in the people's list panel tag property. This /// is done in the event the permissions browser is done navigating to nothing /// because until that's done, it may have a lock on a permissions file associated /// with the person being deleted, which would prevent the deletion. It's sort of /// a strange place to do the deletion, I know. /// </summary> /// ------------------------------------------------------------------------------------ void DeleteSelectedPeople(object sender, WebBrowserNavigatedEventArgs e) { webConsent.Navigated -= DeleteSelectedPeople; var itemsToDelete = lpPeople.Tag as List <object>; if (itemsToDelete != null) { foreach (var obj in itemsToDelete) { _currProj.DeletePerson(obj.ToString()); } _currPerson = null; } CheckIfNoMorePeople(); lpPeople.Focus(); }