コード例 #1
0
        public virtual void Save()
        {
            ModelList.BeginSave((s, r) =>
            {
                if (r.Error != null)
                {
                    throw r.Error;
                }

                ModelList = (TCslaModelList)r.NewObject;
                NotifyOfPropertyChange(() => CanSave);
            });
        }
コード例 #2
0
        public virtual void Save()
        {
            ModelList.BeginSave((s, r) =>
            {
                if (r.Error != null)
                {
                    throw r.Error;
                }

                ModelList = (PhraseList)r.NewObject;
                //propagate new PhraseEdits to their ViewModels
                PopulateItems(ModelList);

                NotifyOfPropertyChange(() => CanSave);
            });
        }