Example #1
0
 private void viewTool_Click(object sender, EventArgs e)
 {
     if (carList.SelectedItem != null)
     {
         OpenForm frm = new OpenForm(carList.SelectedItem);
         frm.ShowDialog();
     }
 }
Example #2
0
 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();
     }
 }