c# Delegate and Dispatcher problem

Posted by Tan on Stack Overflow See other posts from Stack Overflow or by Tan
Published on 2010-04-16T08:48:17Z Indexed on 2010/04/16 8:53 UTC
Read the original article Hit count: 173

Filed under:

Hi i get this error when trying this

ERROR method name expected. How should i do to correct the problem thanks for help

        delegate void DelegateFillList(DeliveryDoc[] deliveryDocs);
    private void FillListViewAssignment(DeliveryDoc[] docs) {
        if(lvMyAssignments.Dispatcher.CheckAccess()) {
            lvMyAssignments.ItemsSource = docs;
            lvAllOngoingAssignments.ItemsSource = docs;

            if(m_tempDeliveryDocs != null) {
                txtblockHandOverCount.Text = m_tempDeliveryDocs.Length.ToString();
            }

        } else {
            lvMyAssignments.Dispatcher.BeginInvoke(new DelegateFillList(FillListViewAssignment(docs)), null);
        }

    }

© Stack Overflow or respective owner

Related posts about c#