示例#1
0
 public CompoundListViewModel(
     IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
     ICompoundCollectionValueModel mdl)
     : base(appCtx, dataCtx, parent, mdl)
 {
     this.ValueModel = mdl;
 }
示例#2
0
 public AuditJournalViewModel(
     IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
     ICompoundCollectionValueModel mdl)
     : base(appCtx, dataCtx, parent, mdl)
 {
     var notifier = mdl.UnderlyingCollection as INotifyCollectionChanged;
     if (notifier != null)
     {
         notifier.CollectionChanged += (sender, e) =>
         {
             _journalEntries = null;
             OnPropertyChanged("JournalEntries");
         };
     }
 }
示例#3
0
        public AuditJournalViewModel(
            IViewModelDependencies appCtx, IZetboxContext dataCtx, ViewModel parent,
            ICompoundCollectionValueModel mdl)
            : base(appCtx, dataCtx, parent, mdl)
        {
            var notifier = mdl.UnderlyingCollection as INotifyCollectionChanged;

            if (notifier != null)
            {
                notifier.CollectionChanged += (sender, e) =>
                {
                    _journalEntries = null;
                    OnPropertyChanged("JournalEntries");
                };
            }
        }