﻿using Livet;

namespace Anne.Foundation.Mvvm
{
    public class ViewModelBase : ViewModel
    {
        public ViewModelBase()
        {
            DisposableChecker.Add(this);
        }

        protected override void Dispose(bool disposing)
        {
            DisposableChecker.Remove(this);

            base.Dispose(disposing);
        }
    }
}
﻿using Livet;

namespace Anne.Foundation.Mvvm
{
    public class ViewModelBase : ViewModel
    {
        public ViewModelBase()
        {
            DisposableChecker.Add(this);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing)
                DisposableChecker.Remove(this);

            base.Dispose(disposing);
        }
    }
}
Fix multiple dispose check problem
Fix multiple dispose check problem
