CDSGetCalendarEntryInfo eventInfo = dataStorage->GetEvent(eventID);
+ // Set the calendar ID.
+
+ calendarID = eventInfo.calendarID;
+
// Load the calendar info.
cmbCalendar->Show(false);
lblCalendar->Show(false);
szrDetails->Layout();
- szrList->Layout();
+ szrList->Layout();
// Load the data into the form.
eventFilePath = eventFile;
editMode = true;
+ calendarID = eventInfo->calendarID;
eventID = addEventResult.calendarEntryID;
EventProperties *eventInfo = new EventProperties;
eventInfo->eventName = txtEventName->GetValue().ToStdString();
- eventInfo->calendarID = calendarIDList[cmbCalendar->GetSelection()];
+ eventInfo->calendarID = calendarID;
eventInfo->eventID = eventID;
eventInfo->eventYear = dapStartDate->GetValue().GetYear();
eventInfo->eventMonth = dapStartDate->GetValue().GetMonth();