Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / C#

Deep Binding

Rate me:
Please Sign up or sign in to vote.
4.30/5 (14 votes)
2 Jul 2005CPOL2 min read 70.5K   1K   25  
Binding Complex objects to Windows Forms controls
using System;

namespace DeepBinding
{
	/// <summary>
	/// Summary description for Author.
	/// </summary>
	public class Author :BindableObject
	{
		public Author()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		public Author(string name, DateTime birthdate)
		{
			this.Name = name;
			this.BirthDate = birthdate ;
		}

		private string _Name;
		public string Name
		{
			get{return _Name;}
			set{_Name = value;}
			
		}
		private DateTime _BirthDate;
		public DateTime BirthDate
		{
			get{return _BirthDate;}
			set{_BirthDate = value;}
			
		}
	}
}

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
Web Developer
France France
MCSD Asp.Net certified developer

Comments and Discussions