Waf.InformationManager.AddressBook.Modules.Applications.Controllers.ContactController.DeleteContact C# (CSharp) 메소드

DeleteContact() 개인적인 메소드

private DeleteContact ( ) : void
리턴 void
        private void DeleteContact()
        {
            // Use the ContactCollectionView, which represents the sorted/filtered state of the contacts, to determine the next contact to select.
            var nextContact = CollectionHelper.GetNextElementOrDefault(ContactListViewModel.ContactCollectionView, ContactListViewModel.SelectedContact);
            
            Root.RemoveContact(ContactListViewModel.SelectedContact);

            ContactListViewModel.SelectedContact = nextContact ?? ContactListViewModel.ContactCollectionView.LastOrDefault();
            ContactListViewModel.FocusItem();
        }