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);
        }
Beispiel #2
0
 internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
 {
     if (base.ReleaseSubobject(editableSubobject))
     {
         return(true);
     }
     if (editableSubobject == movieEditObject)
     {
         movieEditObject = null;
         return(true);
     }
     if (editableSubobject == movieCompanyEditObject)
     {
         movieCompanyEditObject = null;
         return(true);
     }
     if (editableSubobject == movieArtistEditObject)
     {
         movieArtistEditObject = null;
         return(true);
     }
     if (editableSubobject == movieItemsEditObject)
     {
         movieItemsEditObject = null;
         return(true);
     }
     if (editableSubobject == movieAddItemsEditObject)
     {
         movieAddItemsEditObject = null;
         return(true);
     }
     return(false);
 }
 internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
 {
     if (base.ReleaseSubobject(editableSubobject))
     {
         return(true);
     }
     if (editableSubobject == rentsPeriodEditObject)
     {
         rentsPeriodEditObject = null;
         return(true);
     }
     return(false);
 }
Beispiel #4
0
 internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
 {
     if (base.ReleaseSubobject(editableSubobject))
     {
         return(true);
     }
     if (editableSubobject == _customerStatsEditObject)
     {
         _customerStatsEditObject = null;
         return(true);
     }
     return(false);
 }
Beispiel #5
0
 internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
 {
     if (base.ReleaseSubobject(editableSubobject))
     {
         return(true);
     }
     if (editableSubobject == listEditObject)
     {
         listEditObject = null;
         return(true);
     }
     if (editableSubobject == viewOptionsEditObject)
     {
         viewOptionsEditObject = null;
         return(true);
     }
     return(false);
 }
 internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
 {
     if (base.ReleaseSubobject(editableSubobject))
     {
         return(true);
     }
     if (editableSubobject == companyMovieEditObject)
     {
         companyMovieEditObject = null;
         return(true);
     }
     if (editableSubobject == companyEditObject)
     {
         companyEditObject = null;
         return(true);
     }
     return(false);
 }
        internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
        {
            if (base.ReleaseSubobject(editableSubobject))
            {
                return(true);
            }
            ArtistPicturesEditObject artistPicturesEditObject = editableSubobject as ArtistPicturesEditObject;

            if (artistPicturesEditObject != null)
            {
                if (!artistPicturesEditObjects.ContainsKey(artistPicturesEditObject.VideoRentObjectOid))
                {
                    return(false);
                }
                artistPicturesEditObjects.Remove(artistPicturesEditObject.VideoRentObjectOid);
                return(true);
            }
            return(false);
        }
Beispiel #8
0
        internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
        {
            if (base.ReleaseSubobject(editableSubobject))
            {
                return(true);
            }
            CompanyMoviesEditObject companyMoviesEditObject = editableSubobject as CompanyMoviesEditObject;

            if (companyMoviesEditObject != null)
            {
                if (!_companyMoviesEditObjects.ContainsKey(companyMoviesEditObject.VideoRentObjectOid))
                {
                    return(false);
                }
                _companyMoviesEditObjects.Remove(companyMoviesEditObject.VideoRentObjectOid);
                return(true);
            }
            return(false);
        }
Beispiel #9
0
        internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
        {
            if (base.ReleaseSubobject(editableSubobject))
            {
                return(true);
            }
            MoviePicturesEditObject moviePicturesEditObject = editableSubobject as MoviePicturesEditObject;

            if (moviePicturesEditObjects != null)
            {
                if (!moviePicturesEditObjects.ContainsKey(moviePicturesEditObject.VideoRentObjectOid))
                {
                    return(false);
                }
                moviePicturesEditObjects.Remove(moviePicturesEditObject.VideoRentObjectOid);
                return(true);
            }
            return(false);
        }
Beispiel #10
0
        internal override bool ReleaseSubobject(EditableSubobject editableSubobject)
        {
            if (base.ReleaseSubobject(editableSubobject))
            {
                return(true);
            }
            if (editableSubobject == movieCategoryEditObject)
            {
                movieCategoryEditObject = null;
                return(true);
            }
            MovieCategoryPriceEditObject priceEditObject = editableSubobject as MovieCategoryPriceEditObject;

            if (priceEditObject != null)
            {
                movieCategoryPriceEditObjects.Remove(priceEditObject.CategoryPriceOid);
                return(true);
            }
            return(false);
        }
Beispiel #11
0
 public CustomerAccountsEdit(EditableSubobject editObject, ModuleObjectDetail detail) : base(editObject, detail)
 {
 }