private void configForm_Load(object sender, EventArgs e) { var swags = SwagCollection.Load(GetPathFor("Swag.xml")); foreach (var swag in swags) { var newRow = new DataGridViewRow(); newRow.Cells.Add(new DataGridViewTextBoxCell { Value = swag.Company }); newRow.Cells.Add(new DataGridViewTextBoxCell { Value = swag.Thing }); swagGrid.Rows.Add(newRow); } var people = AttendeeCollection.Load(GetPathFor("Attendees.xml")); foreach (var person in people) { textBox1.AppendText(person.Name + Environment.NewLine); } }
protected override IList <IAttendee> LoadThings(string thingLocation) { return(AttendeeCollection.Load(thingLocation)); }