Smrf.NodeXL.ExcelTemplate.AutomateTasksDialog.SetTasksToRun C# (CSharp) Method

SetTasksToRun() protected method

protected SetTasksToRun ( AutomationTasks eTasksToRun ) : void
eTasksToRun AutomationTasks
return void
    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;
    }