public AttendeeElement(ConfAttendee ca) : base(ca.Name) { attendee = ca; }
/// <summary> /// Load the embedded attendee data, which allows the app /// to work offline from installation. Hardcoding is bad :) /// </summary> public void LoadSeedAttendeeData() { var csv = System.IO.File.ReadAllText (CsvDataFilename); var lines = csv.Split ('\n'); foreach (var line in lines) { var fields = line.Trim().Split (','); var attendee = new ConfAttendee() { SqlId=Convert.ToInt32(fields[0]), Barcode=fields[1], Name=fields[2]}; Insert (attendee); Console.WriteLine("Added " + attendee.Name); } }