Displaying ListView items - with class! by Rob Birdwell
m.EventArgs e)
{
if (PersonListView.ListItems.Count == 0)
return; // nothing to do!
// Get the PersonListItem object associated with the selection
PersonListItem li = (PersonListItem)GetCurrentSelectedListItem(PersonListView);
Person p = li.PersonData;
MessageBox.Show( " Name: " + p.Name +
{
if (PersonListView.ListItems.Count == 0)
return; // nothing to do!
// Get the PersonListItem object associated with the selection
PersonListItem li = (PersonListItem)GetCurrentSelectedListItem(PersonListView);
Person p = li.PersonData;
MessageBox.Show( " Name: " + p.Name +
| 对此文章发表了评论 |

