Exemplo n.º 1
0
        public virtual void Save()
        {
            ModelList.BeginSave((s, r) =>
            {
                if (r.Error != null)
                {
                    throw r.Error;
                }

                ModelList = (TCslaModelList)r.NewObject;
                NotifyOfPropertyChange(() => CanSave);
            });
        }
Exemplo n.º 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);
            });
        }