private void load(object sender, EventArgs e) { this.RadForm3 = new RadForm3(); this.RadForm6 = new RadForm6(); this.Text = "Random Restaurant Generator"; if (!File.Exists("records.xml")) { return; } XmlSerializer ser2 = new XmlSerializer(typeof(BindingList <Restaurant>)); TextReader reader = new StreamReader("records.xml"); recordList = (BindingList <Restaurant>)ser2.Deserialize(reader); reader.Close(); foreach (Restaurant x in recordList) { if (!locList.Contains(x.location)) { locList.Add(x.location); } } locationBox.DataSource = locList; restList.DataSource = recordList; restList.DisplayMember = "rname"; priceDropList.DataSource = priceList; }