private void StoreMovieImage(Stream movieImageStream)
        {
            byte[] photoBytes = new byte[movieImageStream.Length];
            movieImageStream.Read(photoBytes, 0, photoBytes.Length);

            MovieImage image = new MovieImage();
            image.ImageData = new Binary(photoBytes);

            this.selectedMovie.Images.Add(image);
            App.DB.SubmitChanges();
        }
Exemple #2
0
 private void Detach_MovieImage(MovieImage image)
 {
     image.Movie = null;
 }
Exemple #3
0
 private void Detach_MovieImage(MovieImage image)
 {
     image.Movie = null;
 }
Exemple #4
0
 private void Add_MovieImage(MovieImage image)
 {
     image.Movie = this;
 }
Exemple #5
0
 private void Add_MovieImage(MovieImage image)
 {
     image.Movie = this;
 }