private void TreeView_FriendDelete(object sender, RoutedEventArgs e) { if (SelectedProfile != null) { model.Delete(SelectedProfile.Uid); } }