public ScheduledTransactionEntryVM(ScheduledTransaction model, IEnumerable <Account> fromAccounts, IEnumerable <Account> toAccounts)
            : base(model)
        {
            FromAccounts   = fromAccounts;
            ToAccounts     = toAccounts;
            _fromAccountId = model.FromAccountId;
            _toAccountId   = model.ToAccountId;

            foreach (var detail in model.Details)
            {
                var vm = new ScheduledTransactionDetailEntryVM(detail);
                ScheduledTransactionDetailEntryVMs.Add(vm);
                Register(vm);
            }

            CalculateTotal();

            ScheduledTransactionDetailEntryVMs.CollectionChanged += ScheduledTransactionDetailEntryVMs_CollectionChanged;
        }
 private void UnRegister(ScheduledTransactionDetailEntryVM vm)
 {
     vm.Model.PropertyChanged -= ScheduledTransactionDetail_PropertyChanged;
 }