public MovieWindow(Movie movie, ShowList showlist)
 {
     InitializeComponent();
     LoadMovieData(movie);
     this.ShowList = showlist;
     this.Movie = movie;
 }
        private string GetMovieInfo(Movie movie)
        {
            StringBuilder builder = new StringBuilder();
            builder.Append("Genre: ").Append(movie.MovieGenre);
            builder.Append(Environment.NewLine);
            builder.Append(Environment.NewLine);
            builder.Append("Time: ");
            builder.Append(movie.Duratation.Hours).Append(":").Append(movie.Duratation.Minutes);
            builder.Append(Environment.NewLine);
            builder.Append(Environment.NewLine);
            builder.Append("Director: ");
            builder.Append(movie.Director);
            builder.Append(Environment.NewLine);
            builder.Append(Environment.NewLine);
            builder.Append("Actors: ");
            builder.Append(GetActorsToString(movie.ArtistList));
            builder.Append(Environment.NewLine);
            builder.Append(Environment.NewLine);
            builder.Append("Story: ");
            builder.Append(movie.MovieInfo);
            builder.Append(Environment.NewLine);
            builder.Append(Environment.NewLine);

            return builder.ToString();
        }
Example #3
0
 public Show(CinemaHall hall, Movie movie, DayOfWeek date, Time time)
 {
     this.Hall = hall;
     this.Movie = movie;
     this.seatReserved = new bool[Hall.Rows, Hall.Seats];
     this.Date = date;
     this.Time = time;
 }
Example #4
0
        private static Movie CreateHobbit()
        {
            List<string> actors = new List<string>();
            actors.Add("Martin Freeman");
            actors.Add(" Ian McKellen");
            actors.Add("Richard Armitage");
            bool isPremiere = true;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"The dwarves, along with Bilbo Baggins and Gandalf the Grey, continue their quest to reclaim Erebor, their homeland, from Smaug. Bilbo Baggins is in possession of a mysterious and magical ring.";
            Movie movie = new Movie("The Hobbit: The Desolation of Smaug", Genre.Adventure, new Time(2, 41), "Peter Jackson", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Hobbit.jpg";

            return movie;
        }
Example #5
0
        private static Movie CreateThor()
        {
            List<string> actors = new List<string>();
            actors.Add("Chris Hemsworth");
            actors.Add("Natalie Portman");
            actors.Add("Tom Hiddleston");
            bool isPremiere = true;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"Faced with an enemy that even Odin and Asgard cannot withstand, Thor must embark on his most perilous and personal journey yet, one that will reunite him with Jane Foster and force him to sacrifice everything to save us all.";
            Movie movie = new Movie("Thor: The Dark World", Genre.Fantasy, new Time(1, 53), "Alan Taylor, James Gunn", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Thor.jpg";

            return movie;
        }
Example #6
0
        private static Movie CreateHungerGames()
        {
            List<string> actors = new List<string>();
            actors.Add("Jennifer Lawrence");
            actors.Add("Josh Hutcherson");
            actors.Add("Liam Hemsworth");
            bool isPremiere = true;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();

            string movieInfo = @"Katniss Everdeen and Peeta Mellark become targets of the Capitol after their victory in the 74th Hunger Games sparks a rebellion in the Districts of Panem.";
            Movie movie = new Movie("Hunger games II", Genre.Action, new Time(2, 26), "Francis Lawrence", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\HungerGames2.jpg";

            return movie;
        }
        private void UpdateMovieImages()
        {
            int count = movies.Count;

            if (movies.Count % 3 != 0 && page * 3 > movies.Count) // If the movies count does not devide without reminder to the images boxes we put the last 3 on the page
            {
                firstButtonMovie = movies[count - 3];
                secondButtonMovie = movies[count - 2];
                thirdButtonMovie = movies[count - 1];
            }
            else
            {
                firstButtonMovie = movies[(page - 1) * 3]; // And here be dragons ;]
                secondButtonMovie = movies[((page - 1) * 3 + 1)];
                thirdButtonMovie = movies[((page - 1) * 3 + 2)];
            }

            MovieImage1.Source = LoadImage(firstButtonMovie.ImageSource);
            MovieImage2.Source = LoadImage(secondButtonMovie.ImageSource);
            MovieImage3.Source = LoadImage(thirdButtonMovie.ImageSource);
        }
Example #8
0
        private static Movie CreateFreeBirds()
        {
            List<string> actors = new List<string>();
            actors.Add("Woody Harrelson");
            actors.Add("Owen Wilson");
            actors.Add("Dan Fogler");
            bool isPremiere = false;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"Two turkeys from opposite sides of the tracks must put aside their differences and team up to travel back in time to change the course of history - and get turkey off the holiday menu for good.";
            Movie movie = new Movie("Free Birds", Genre.Animation, new Time(1, 33), "Jimmy Hayward", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Free Birds .jpg";

            return movie;
        }
Example #9
0
        private static Movie CreateRunner()
        {
            List<string> actors = new List<string>();
            actors.Add("Justin Timberlake");
            actors.Add("Ben Affleck");
            actors.Add("Gemma Arterton");
            bool isPremiere = false;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"When a poor college student who cracks an online poker game goes bust, he arranges a face-to-face with the man he thinks cheated him, a sly offshore entrepreneur.";
            Movie movie = new Movie("Runner Runner", Genre.Action, new Time(1, 31), "Brad Furman", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Runner Runner.jpg";

            return movie;
        }
Example #10
0
        private static Movie CreateDespicableMe()
        {
            List<string> actors = new List<string>();
            actors.Add("Steve Carell");
            actors.Add("Kristen Wiig");
            actors.Add("Benjamin Bratt");
            bool isPremiere = false;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"Gru is recruited by the Anti-Villain League to help deal with a powerful new super criminal.";
            Movie movie = new Movie("Despicable Me II", Genre.Animation, new Time(2, 15), "Pierre Coffin, Chris Renaud", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Despicable me.jpg";

            return movie;
        }
Example #11
0
        private static Movie CreateTheSmurfs()
        {
            List<string> actors = new List<string>();
            actors.Add("Neil Patrick Harris");
            actors.Add("Jayma Mays");
            actors.Add("Katy Perry");
            bool isPremiere = true;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"The Smurfs team up with their human friends to rescue Smurfette, who has been kidnapped by Gargamel since she knows a secret spell that can turn the evil sorcerer's newest creation - creatures called the Naughties - into real Smurfs.";
            Movie movie = new Movie("The Smurfs II", Genre.Animation, new Time(2, 15), "Raja Gosnell", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\The Smurfs.jpg";

            return movie;
        }
 private void LoadMovieData(Movie movie)
 {
     movieInfo.Text = GetMovieInfo(movie);
     MovieImage.Source = LoadImage(movie.ImageSource);
     MovieLabel.Content = movie.Name;
 }
Example #13
0
        private static Movie CreateBattleOfTheYear()
        {
            List<string> actors = new List<string>();
            actors.Add("Josh Holloway");
            actors.Add("Laz Alonso");
            actors.Add("Josh Peck");
            bool isPremiere = false;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"Battle of the Year attracts all the best teams from around the world, but the Americans haven't won in fifteen years. Dante enlists Blake to assemble a team of the best dancers and bring the Trophy back to America where it started.";
            Movie movie = new Movie("Battle of the Year", Genre.Musical, new Time(2, 13), "Benson Lee", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Battle of the Year.jpg";

            return movie;
        }
Example #14
0
        private static Movie CreateAboutTime()
        {
            List<string> actors = new List<string>();
            actors.Add("Domhnall Gleeson");
            actors.Add("Rachel McAdams");
            actors.Add("Bill Nighy");
            bool isPremiere = true;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.";
            Movie movie = new Movie("About Time", Genre.Comedy, new Time(1, 45), "Richard Curtis", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\About Time.jpg";

            return movie;
        }
Example #15
0
        private static Movie CreateCarrie()
        {
            List<string> actors = new List<string>();
            actors.Add("Chloe Grace Moretz");
            actors.Add("Julianne Moore");
            bool isPremiere = false;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"A reimagining of the classic horror tale about Carrie White, a shy girl outcast by her peers and sheltered by her deeply religious mother, who unleashes telekinetic terror on her small town after being pushed too far at her senior prom.";
            Movie movie = new Movie("Carrie", Genre.Horror, new Time(1, 33), "Kimberly Peirce", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Carrie.jpg";

            return movie;
        }
Example #16
0
        private static Movie CreateCounselor()
        {
            List<string> actors = new List<string>();
            actors.Add("Michael Fassbender");
            actors.Add("Javier Bardem");
            actors.Add("Brad Pitt");
            bool isPremiere = false;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"A lawyer finds himself in over his head when he gets involved in drug trafficking.";
            Movie movie = new Movie("The Counselor", Genre.Drama, new Time(1, 53), "Ridley Scott", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\The Counselor.jpg";

            return movie;
        }
Example #17
0
 public BaseTicket(Movie movie, decimal price)
     : base(movie, price)
 {
 }
Example #18
0
 public void Add(Movie movie)
 {
     movies.Add(movie);
     this.Count++;
 }
Example #19
0
        private static Movie CreateKhumba()
        {
            List<string> actors = new List<string>();
            actors.Add("Jake T. Austin");
            actors.Add("Liam Neeson");
            actors.Add("Steve Buscemir");
            bool isPremiere = true;
            List<MovieDate> projectionDates = CreateRandomProjectionDays();
            string movieInfo = @"Rejected by his superstitious herd, a half-striped zebra embarks on a daring quest to earn his stripes but finds the courage and self-acceptance to save all the animals of the Great Karoo.";
            Movie movie = new Movie("Khumba", Genre.Animation, new Time(2, 15), "Anthony Silverston", actors, movieInfo, isPremiere, projectionDates);
            movie.ImageSource = @"Images\Movies\Khumba.jpg";

            return movie;
        }
 private static void OpenMovieWindow(Movie movie, ShowList shows)
 {
     MovieWindow window = new MovieWindow(movie, shows);
     window.Show();
 }