using System.ComponentModel.Composition;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.ViewModel;
using Module_Content.Interface;
using System.Collections.ObjectModel;
using Module_Content.Models;

namespace Module_Content.ViewModels
{
	public class ContentViewModel
	{
		[Export(typeof(IContentViewModel))]
		[PartCreationPolicy(CreationPolicy.NonShared)]
		public class WorldViewModel : NotificationObject, IContentViewModel
		{
			Person per;
			public WorldViewModel()
			{
				people = new ObservableCollection<Person>
            {
                new Person { Id = 1, Age =22, Name = "조장원" },
                new Person { Id = 2, Age =26, Name = "홀대두" },
                new Person { Id = 3, Age =26, Name = "카리바" },
            };
			}

			ObservableCollection<Person> people;
			public ObservableCollection<Person> People
			{
				get
				{
					return people;
				}
				set
				{
					if (value != people)
					{
						people = value;
						this.RaisePropertyChanged("People");
					}
				}
			}
		}
	}
}