Пример #1
0
        internal MoviePicturesEditObject GetMoviePicturesEditObject(Guid movieOid)
        {
            MoviePicturesEditObject editObject;

            if (!moviePicturesEditObjects.TryGetValue(movieOid, out editObject))
            {
                editObject = new MoviePicturesEditObject(this, movieOid);
                moviePicturesEditObjects.Add(movieOid, editObject);
            }
            return(editObject);
        }
Пример #2
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);
        }
Пример #3
0
        MoviePicturesEdit CreateMoviePicturesEdit()
        {
            MoviePicturesEditObject editObject = VRObjectsListObject.GetMoviePicturesEditObject(MoviesEdit.CurrentRecord.Oid);

            return(MoviePicturesEdit != null && MoviePicturesEdit.EditObject == editObject ? MoviePicturesEdit : new MoviePicturesEdit(editObject, this));
        }
Пример #4
0
 public MoviePicturesEdit(MoviePicturesEditObject editObject, ModuleObjectDetail detail) : base(editObject, detail)
 {
 }