protected override bool ReleaseSubobject(EditableSubobject editableSubobject)
        {
            if (base.ReleaseSubobject(editableSubobject))
            {
                return(true);
            }
            if (editableSubobject == movieCategoriesEditObject)
            {
                movieCategoriesEditObject = null;
                return(true);
            }
            MovieCategoryEditObject movieCategoryEditObject = editableSubobject as MovieCategoryEditObject;

            if (movieCategoryEditObject != null)
            {
                movieCategoryEditObjects.Remove(movieCategoryEditObject.VideoRentObjectOid);
                return(true);
            }
            MovieCategoryPriceEditObject movieCategoryPriceEditObject = editableSubobject as MovieCategoryPriceEditObject;

            if (movieCategoryPriceEditObject != null)
            {
                movieCategoryPriceEditObjects.Remove(movieCategoryPriceEditObject.CategoryPriceOid);
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
 public MovieCategoriesEdit(MovieCategoriesEditObject editObject, ModuleObjectDetail detail) : base(editObject, detail)
 {
     LayoutManager.Current.Subscribe(OnLayoutManagerAfterLoad, OnLayoutManagerBeforeSave);
 }