private void viewTool_Click(object sender, EventArgs e) { if (carList.SelectedItem != null) { OpenForm frm = new OpenForm(carList.SelectedItem); frm.ShowDialog(); } }
private void viewTool_Click(object sender, EventArgs e) { if (carList.SelectedItem != null) { String item = carList.SelectedItem.ToString(); String[] split = item.Split(' '); OpenForm open = new OpenForm(split[0], GetSelectedItem()); open.ShowDialog(); } }