private GDMCustomEvent AddEvent(GDMRecordWithEvents indiRec, string eventName) { GDMCustomEvent result = new GDMIndividualEvent(); result.SetName(eventName); indiRec.AddEvent(result); return(result); }
private bool ProcessRecordEvent(bool redo) { GDMRecordWithEvents rwe = fObj as GDMRecordWithEvents; GDMCustomEvent evt = fNewVal as GDMCustomEvent; if (rwe == null || evt == null) { return(false); } if (fType == OperationType.otRecordEventRemove) { redo = !redo; } if (redo) { rwe.AddEvent(evt); } else { rwe.Events.Extract(evt); // bugfix(no delete!) } return(true); }