Click here to Skip to main content
15,881,248 members
Articles / Desktop Programming / WPF

Model View Presenter with WPF and Unity Container

Rate me:
Please Sign up or sign in to vote.
3.87/5 (8 votes)
1 Jan 2009CPOL5 min read 66.9K   1.4K   43  
This article demonstrates using a model view presenter (MVP) pattern in a sample program.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CustomerInfoObserver
{
    public class Logger : ILogger
    {
        private string _logEntry;

        public string LogEntry
        {
            get { return _logEntry; }
            set { _logEntry = value; }
        }
        public void Log(string logEntry)
        {
            _logEntry = logEntry;
        }
    }
}

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
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions