Hi all,
i write a C# Tool, to push my Events to my Google-Calender.
My tool start to look for possible an Event at the same Time with the
same Event-Content exist. Sometime, many Events exists with the same
Content on the same Time. Then my tool should delete all Events and
create a new one Event. Looks at my code-snippet please:
EventQuery myQuery = new
EventQuery(calendarURI);
myQuery.StartTime = dtstart;
myQuery.EndTime = dtend;
myQuery.Query =
dataGridView1.Rows[i].Cells[5].Value.ToString();
EventFeed myResultsFeed =
service.Query(myQuery);
if (myResultsFeed.Entries.Count > 0)
{
for( int j = 0; j <
myResultsFeed.Entries.Count; j++ )
{
AtomEntry firstMatchEntry =
myResultsFeed.Entries[ j ];
firstMatchEntry.Delete();
toolStripStatusLabel1.Text = "Termin
gelöscht!";
Application.DoEvents();
}
}
My Tool run the FOR-Loop throug all events, but doesnt delete this
events. My questions is, why not??
best regards
Carsten
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---