protected override void btnEdit_Click( object sender, EventArgs e )
{
if (HasSelected)
{
Mapping mapping = SelectedObject as Mapping;
if (mapping != null)
{
var form = new MappingForm(HardwareItemDescription);
form.Text = @"Edit Map";
form.Mapping = mapping;
if (DialogResult.OK == form.ShowDialog())
{
mapping = form.Mapping;
SelectedListViewItem.SubItems[0].Text = mapping.ToString();
}
}
}
}