コード例 #1
0
        public void SetInstance(Item i)
        {
            Book b = i as Book;

            BookId                  = b.Id;
            BookName                = b.Name;
            Author                  = b.Author;
            Description             = new CDescription();
            Description.Owner       = this;
            Description.Description = b.Description;
            Opinion                 = new COpinion();
            Opinion.Opinion         = b.Opinion;
            Opinion.Owner           = this;
            Genre   = b.Genre;
            Read    = b.Read;
            Private = b.Private;
            ID      = b.ID;
            IdUser  = b.IdUser;
        }
コード例 #2
0
ファイル: CSong.cs プロジェクト: sokolcina/PersonalItem
        public void SetInstance(Item i)
        {
            Song s = i as Song;

            SongId                  = s.Id;
            SongName                = s.Name;
            Singer                  = s.Singer;
            Description             = new CDescription();
            Description.Owner       = this;
            Description.Description = s.Description;
            Opinion                 = new COpinion();
            Opinion.Owner           = this;
            Opinion.Opinion         = s.Opinion;
            Genre    = s.Genre;
            Listened = s.Listened;
            Private  = s.Private;
            ID       = s.ID;
            IdUser   = s.IdUser;
        }
コード例 #3
0
        public void SetInstance(Item i)
        {
            Movie m = i as Movie;

            MovieId                 = m.Id;
            MovieName               = m.Name;
            Directors               = m.Directors;
            Description             = new CDescription();
            Description.Owner       = this;
            Description.Description = m.Description;
            Opinion                 = new COpinion();
            Opinion.Owner           = this;
            Opinion.Opinion         = m.Opinion;
            Genre   = m.Genre;
            Watched = m.Watched;
            Private = m.Private;
            ID      = m.ID;
            IdUser  = m.IdUser;
        }
コード例 #4
0
        public void SetInstance(Item i)
        {
            Series s = i as Series;

            SeriesId                = s.Id;
            SeriesName              = s.Name;
            Creators                = s.Creators;
            Description             = new CDescription();
            Description.Owner       = this;
            Description.Description = s.Description;
            Opinion         = new COpinion();
            Opinion.Owner   = this;
            Opinion.Opinion = s.Opinion;
            Genre           = s.Genre;
            SeasonWatched   = s.SeasonWatched.ToString();
            Watched         = s.Watched;
            Private         = s.Private;
            ID     = s.ID;
            IdUser = s.ID;
        }