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

ItemToAutomationTask() protected method

protected ItemToAutomationTask ( Object oCheckedListBoxItem ) : AutomationTasks
oCheckedListBoxItem Object
return AutomationTasks
    ItemToAutomationTask
    (
        Object oCheckedListBoxItem
    )
    {
        Debug.Assert(oCheckedListBoxItem != null);
        AssertValid();

        Debug.Assert(oCheckedListBoxItem is ObjectWithText);

        Debug.Assert( ( (ObjectWithText)oCheckedListBoxItem ).Object
            is AutomationTasks );

        return ( (AutomationTasks)
            ( (ObjectWithText)oCheckedListBoxItem ).Object );
    }