private void Edit_Click(object sender, EventArgs e) { CarEdit editDialog = new CarEdit( parent, parent.getCarByIndex( int.Parse(listView1.SelectedItems[0].Name) ) ); editDialog.ShowDialog(); }
public void ShowEditDialog() { CarEdit editDialog = new CarEdit( parent, parent.getCarByIndex( int.Parse(listView1.SelectedItems[0].Name) ) ); editDialog.ShowDialog(); }