Click here to Skip to main content
15,880,725 members
Articles / Programming Languages / C#

MVP: Updating View’s Binding Asynchronously with the SynchronizationContext Object

Rate me:
Please Sign up or sign in to vote.
2.43/5 (4 votes)
15 Mar 2010CPOL2 min read 22.8K   210   8  
MVP: Updating View’s binding asynchronously with the SynchronizationContext object.
using System;
using System.Threading;

namespace WindowsMVPPattern.Interfaces
{
    public interface IView
    {
        event EventHandler OnLongRunningCalculationRequested;

        decimal Total
        {
            get;
            set;
        }

        SynchronizationContext Context
        {
            get;
            set;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Finance Industry
United States United States
Currently pursuing 'Programming Nirvana' (The ineffable ultimate in which one has attained disinterested wisdom and compassion as it relates to programming)

Respected Technologies
1. Confusor (https://confuser.codeplex.com/)
2. Power Threading (http://www.wintellect.com/Resources/visit-the-power-threading-library)
3. EDI Parsers (http://www.rdpcrystal.com)


Acknowledgements:

Microsoft Certified Technologist for WPF and .Net 3.5 (MCTS)
Microsoft Certified Technologist for WCF and .Net 3.5 (MCTS)
Microsoft Certified Application Developer for .Net (MCAD)
Microsoft Certified Systems Engineer (MCSE)
Microsoft Certified Professional (MCP)

Sun Certified Developer for Java 2 Platform (SCD)
Sun Certified Programmer for Java 2 Platform (SCP)
Sun Certified Web Component Developer (SCWCD)

CompTIA A+ Certified Professional

Registered Business School Teacher for Computer Programming and Computer Applications (2004)
(University of the State of New York Education Department)

Graduated from University At Stony Brook

Comments and Discussions