public void HandleDeleteWorkingHours(object sender, EventArgs e) { CalendarEvent cevent = (CalendarEvent)sender; DBStore store = new DBStore(); store.DeleteWorkingHours(cevent.Event.InsertId); }