Click here to Skip to main content
15,896,063 members
Articles / Desktop Programming / WPF

Layers Pattern in Practice

Rate me:
Please Sign up or sign in to vote.
4.96/5 (59 votes)
23 Apr 2010CPOL25 min read 153.1K   8.1K   187  
Layers Pattern via a WPF project.
using System;
using System.ComponentModel;

namespace BillsEntityLib
{
    /// <summary>
    /// Bill property changed event argument class
    /// </summary>
    [Serializable]
    public class BillPropertyChangeEventArgs : PropertyChangedEventArgs
    {
        private string changedIdField;
        /// <summary>
        /// Bill Property Changed Constructor
        /// </summary>
        /// <param name="id">ID of changed bill</param>
        /// <param name="propertyName">Property name</param>
        public BillPropertyChangeEventArgs(string id, string propertyName) : base(propertyName)
        {
            changedIdField = id;    
        }

        /// <summary>
        /// Changed ID
        /// </summary>
        public string ChangedId
        {
            get 
            {
                return changedIdField;
            }
        }
    }
}

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
Moldova (Republic of) Moldova (Republic of)
Interested in computer science, math, research, and everything that relates to innovation. Fan of agnostic programming, don't mind developing under any platform/framework if it explores interesting topics. In search of a better programming paradigm.

Comments and Discussions