using selected item in listbox csharp to fill texbox

Code Example - using selected item in listbox csharp to fill texbox

                
                        string selected = listBox1.SelectedItem.ToString();
            int id = int.Parse(selected.Split(' ')[0]); // we are using dictionary and spliting the item in listbox and as  spliting parametar we are using space
            Car<string, string, string> cars = car[id];
            textBox1.Text = id.ToString();
            textBox2.Text = cars.manufacturer;
            textBox3.Text = cars.model;
            pictureBox1.ImageLocation = cars.picture;
//by iq18but18cm