Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 protected override IList <SwagBase> LoadThings(string thingLocation)
 {
     return(SwagCollection.Load(thingLocation));
 }