コード例 #1
0
        protected override void AfterSaveChangesUI()
        {
            if (SeoStepViewModel != null)
            {
                SeoStepViewModel.SaveSeoKeywordsChanges();
            }

            // just basic properties inject is enough. Injecting collections can generate repository errors.
            OriginalItem.InjectFrom(InnerItem);
            _parentTreeVM.RefreshUI();
        }
コード例 #2
0
 protected virtual void InnerItem_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Code")
     {
         SeoStepViewModel.ChangeKeywordValue(InnerItem.Code);
     }
     if (e.PropertyName == "PropertySetId")
     {
         SetupPropertiesAndValues(InnerItem.PropertySet, InnerItem.CategoryPropertyValues, InnerItemCatalogLanguages, PropertiesAndValues, IsWizardMode);
     }
 }
コード例 #3
0
        protected override void AfterSaveChangesUI()
        {
            if (_parent != null)
            {
                OriginalItem.InjectFrom <CloneInjection>(InnerItem);
                _parent.RefreshItem(OriginalItem);
            }

            if (SeoStepViewModel != null)
            {
                SeoStepViewModel.SaveSeoKeywordsChanges();
            }
        }