Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by john doe ( 16 years ago )
else if (radioButton2.Checked == true)//if this is true when an item is selected display everything
                {
                    string line = listBox1.SelectedItem.ToString(); 
                    string[] parts = line.Split(' '); //splits the line after the id number using a space to find correct posistion
                    foreach (movieInformation aMovieInformation in movieList)
                    {
                        if (aMovieInformation.idNumber == Convert.ToInt32(parts[0]))
                        {
                            idTextBox.Text = aMovieInformation.idNumber.ToString();
                            titleTextBox.Text = aMovieInformation.title;
                            formatTextBox.Text = aMovieInformation.format;
                            genreTextBox.Text = aMovieInformation.genre;
                            yearTextBox.Text = aMovieInformation.year.ToString();
                            lentToTextBox.Text = aMovieInformation.lentTo;
                            filepathTextBox.Text = aMovieInformation.fileName;
                        }
                    }

 

Revise this Paste

Your Name: Code Language: