Example #1
0
 protected virtual void OnSaving(ItemViewEditableObjectEventArgs args)
 {
     if (Saving != null)
         Saving(this, args);
 }
Example #2
0
 protected virtual void OnItemCreating(ItemViewEditableObjectEventArgs args)
 {
     if (ItemCreating != null)
         ItemCreating(this, args);
 }
Example #3
0
 protected void zeusItemEditView_ItemCreating(object sender, ItemViewEditableObjectEventArgs e)
 {
     if (!string.IsNullOrEmpty(Discriminator))
     {
         ContentItem parentItem = Zeus.Context.Current.Resolve<Navigator>().Navigate(SelectedItem.Path);
         ContentItem contentItem = Zeus.Context.Current.ContentTypes.CreateInstance(CurrentItemType, parentItem);
         contentItem.Language = SelectedLanguageCode;
         if (contentItem is WidgetContentItem)
             ((WidgetContentItem) contentItem).ZoneName = Page.Request["zoneName"];
         e.AffectedItem = contentItem;
     }
 }