private void AddAttendee() { fContactSelect f = new fContactSelect(myFM, null, true); f.ShowDialog(); if (f.ContactId != 0) { //if contact is allready an attendee ignore if (myFM.DB.Attendee.Select("ApptId=" + apptRow.ApptId.ToString() + " and ContactId=" + f.ContactId.ToString()).Length == 0) { atriumDB.AttendeeRow attRow = (atriumDB.AttendeeRow)myFM.GetAttendee().Add(apptRow); attRow.ContactId = f.ContactId; AddAttendeeToTimeline(this.timeLine1.Fields["ContactId"], attRow); } } f.Close(); }