__endDate = *static_cast<DateTime*>(pArgs->GetAt(1));
}
delete pArgs;
-
- if (__pEvents)
- {
- __pEvents->RemoveAll(true);
- delete __pEvents;
- __pEvents = null;
- }
-
String title;
__pDateFormatter->Format(__startDate, title);
GetHeader()->SetTitleText(title);
- CalendarbookFilter filter(CB_FI_TYPE_NON_ALL_DAY_EVENT_INSTANCE);
- filter.AppendDateTime(FI_CONJ_OP_NONE, EVENT_INST_FI_PR_END_TIME, FI_CMP_OP_GREATER_THAN_OR_EQUAL, ResourceManager::ConvertWallTimeToUtcTime(__startDate));
- filter.AppendDateTime(FI_CONJ_OP_AND, EVENT_INST_FI_PR_START_TIME, FI_CMP_OP_LESS_THAN_OR_EQUAL, ResourceManager::ConvertWallTimeToUtcTime(__endDate));
- __pEvents = __pCalendarbook->SearchN(filter, EVENT_INST_FI_PR_START_TIME, SORT_ORDER_ASCENDING);
- __pEventsListView->UpdateList();
}
+ if (__pEvents)
+ {
+ __pEvents->RemoveAll(true);
+ delete __pEvents;
+ __pEvents = null;
+ }
+ CalendarbookFilter filter(CB_FI_TYPE_NON_ALL_DAY_EVENT_INSTANCE);
+ filter.AppendDateTime(FI_CONJ_OP_NONE, EVENT_INST_FI_PR_END_TIME, FI_CMP_OP_GREATER_THAN_OR_EQUAL, ResourceManager::ConvertWallTimeToUtcTime(__startDate));
+ filter.AppendDateTime(FI_CONJ_OP_AND, EVENT_INST_FI_PR_START_TIME, FI_CMP_OP_LESS_THAN_OR_EQUAL, ResourceManager::ConvertWallTimeToUtcTime(__endDate));
+ __pEvents = __pCalendarbook->SearchN(filter, EVENT_INST_FI_PR_START_TIME, SORT_ORDER_ASCENDING);
+ __pEventsListView->UpdateList();
+
}
void