using System.Collections.Generic;
using System.ComponentModel;
namespace SilverlightTest1 {
public class MyViewModel : INotifyPropertyChanged {
private IEnumerable<IsoCurrency> isoCurrenciesList;
public IEnumerable<IsoCurrency> IsoCurrenciesList {
get { return isoCurrenciesList; }
set {
isoCurrenciesList = value;
RaisePropertyChangedEvent( "IsoCurrenciesList" );
}
}
#region INotifyPropertyChanged Members
private void RaisePropertyChangedEvent( string property ) {
if( PropertyChanged != null ) {
PropertyChanged( this, new PropertyChangedEventArgs( property ) );
}
}
public event PropertyChangedEventHandler PropertyChanged;
#endregion
}
public class IsoCurrency {
public string Code { get; set; }
public string Description { get; set; }
public int LocaleID { get; set; }
}
}