using nRoute.ViewModels;
using OGDC.Silverlight.Toolkit.ViewModels;

namespace EspaceClient.BackOffice.Silverlight.ViewModels.GestionContenu.Bloc
{
    public partial class BlocEntityViewModel : ViewModelBase, IHasChangeTracker
    {
        private IChangeTracker _changeTracker;

        public IChangeTracker ChangeTracker
        {
            get
            {
                return _changeTracker;
            }

            set
            {
                if (_changeTracker != value)
                {
                    _changeTracker = value;
                    NotifyPropertyChanged(() => ChangeTracker);
                }
            }
        }

        private void InitializeChangeTracker()
        {
            _changeTracker = new ChangeTracker(this);
        }
    }
}
