SetTasksToRun
(
AutomationTasks eTasksToRun
)
{
AssertValid();
CheckedListBox.ObjectCollection oItems = clbTasksToRun.Items;
Int32 iItems = oItems.Count;
m_bIgnoreItemCheckEvents = true;
for (Int32 i = 0; i < iItems; i++)
{
clbTasksToRun.SetItemChecked(i,
( eTasksToRun & ItemToAutomationTask( oItems[i] ) ) != 0);
}
m_bIgnoreItemCheckEvents = false;
}