private void CopyTest(string filename) { iCalendar iCal1 = iCalendar.LoadFromFile(@"Calendars\Serialization\" + filename); iCalendar iCal2 = iCal1.Copy(); Serialization.CompareCalendars(iCal1, iCal2); }
static void Main(string[] args) { // First, create a calendar iCalendar iCal = CreateCalendar(); // Make a copy of the calendar and save it! iCalendar newCal = iCal.Copy(); SaveCalendar("Copied.ics", newCal); // Show the calendar in a specific time zone ShowCalendar(iCal, "America/New_York"); ShowCalendar(iCal, "America/Denver"); // Save the calendar to file SaveCalendar("Output.ics", iCal); EditAndSaveEvent("Output.ics", "1234567890"); }