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();
        }
Beispiel #2
0
 private void Detach_MovieImage(MovieImage image)
 {
     image.Movie = null;
 }
Beispiel #3
0
 private void Detach_MovieImage(MovieImage image)
 {
     image.Movie = null;
 }
Beispiel #4
0
 private void Add_MovieImage(MovieImage image)
 {
     image.Movie = this;
 }
Beispiel #5
0
 private void Add_MovieImage(MovieImage image)
 {
     image.Movie = this;
 }