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; }
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; }
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; }
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; }