Exemplo n.º 1
0
        private void buttonFantasy_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderFantasyMovies", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void bornTodayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("BornToday", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void buttonAnimation_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderAnimationMovies", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 4
0
        private void allActorsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("AllActorsCelebs", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 5
0
        private void buttonThriller_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderThrillerMovies", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 6
0
        private void mostPopularCelebsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("MostPopularCelebs", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 7
0
        private void topRatedTVSeriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("TopRatedTVSeries", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 8
0
        private void celebrityNewsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("CelebrityNews", this);

            form.Show();
            this.Hide();
        }
Exemplo n.º 9
0
 private void SearchPictureBox_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.Equals(""))
     {
         MessageBox.Show("Please enter a keyword for search!", "InfoMessage");
     }
     else
     {
         using (var context = new IMDBEntities())
         {
             var ResultMovies = (from rmov in context.Filmes
                                 where rmov.Nume.Contains(textBox1.Text)
                                 select rmov).FirstOrDefault();
             var ResultTVSeries = (from rtv in context.Seriales
                                   where rtv.Nume.Contains(textBox1.Text)
                                   select rtv).FirstOrDefault();
             var ResultActors = (from ra in context.Actoris
                                 where ra.Nume.Contains(textBox1.Text) || ra.Prenume.Equals(textBox1.Text)
                                 select ra).FirstOrDefault();
             var ResultDirectors = (from rd in context.Regizoris
                                    where rd.Nume.Contains(textBox1.Text) || rd.Prenume.Equals(textBox1.Text)
                                    select rd).FirstOrDefault();
             var ResultGender = (from rg in context.Genuris
                                 where rg.Nume_Gen.Contains(textBox1.Text)
                                 select rg).FirstOrDefault();
             if (SearchBy.Text.Equals("Movies"))
             {
                 if (ResultMovies != null)
                 {
                     UniversalPage searchbymovies = new UniversalPage("SearchByMovies", textBox1.Text, this);
                     searchbymovies.Show();
                     this.Hide();
                 }
                 else
                 {
                     MessageBox.Show("Nu exista nici o inregistrare care sa corespunda textului introdus!");
                 }
             }
             else if (SearchBy.Text.Equals("TV Series"))
             {
                 if (ResultTVSeries != null)
                 {
                     UniversalPage searchbytvseries = new UniversalPage("SearchByTVSeries", textBox1.Text, this);
                     searchbytvseries.Show();
                     this.Hide();
                 }
                 else
                 {
                     MessageBox.Show("Nu exista nici o inregistrare care sa corepunda textului introdus!");
                 }
             }
             else if (SearchBy.Text.Equals("Actors"))
             {
                 if (ResultActors != null)
                 {
                     UniversalPage searchbyactors = new UniversalPage("SearchByActors", textBox1.Text, this);
                     searchbyactors.Show();
                     this.Hide();
                 }
                 else
                 {
                     MessageBox.Show("Nu exista nici o inregistrare care sa corepunda textului introdus!");
                 }
             }
             else if (SearchBy.Text.Equals("Directors"))
             {
                 if (ResultDirectors != null)
                 {
                     UniversalPage searchbydirectors = new UniversalPage("SearchByDirectors", textBox1.Text, this);
                     searchbydirectors.Show();
                     this.Hide();
                 }
                 else
                 {
                     MessageBox.Show("Nu exista nici o inregistrare care sa corepunda textului introdus!");
                 }
             }
             else if (SearchBy.Text.Equals("Gender"))
             {
                 if (ResultGender != null)
                 {
                     UniversalPage searchbygender = new UniversalPage("SearchByGender", textBox1.Text, this);
                     searchbygender.Show();
                     this.Hide();
                 }
                 else
                 {
                     MessageBox.Show("Nu exista nici o inregistrare care sa corepunda textului introdus!");
                 }
             }
         }
     }
 }
Exemplo n.º 10
0
        private void buttonWestern_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderWesternMovies");

            form.Show();
        }
Exemplo n.º 11
0
        private void buttonHistory_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderHistoryMovies");

            form.Show();
        }
Exemplo n.º 12
0
        private void buttonFilmNoir_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderFilmNoirMovies");

            form.Show();
        }
Exemplo n.º 13
0
        private void buttonDrama_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderDramaMovies");

            form.Show();
        }
Exemplo n.º 14
0
        private void buttonBiography_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderBiographyMovies");

            form.Show();
        }
Exemplo n.º 15
0
        private void buttonAdventure_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderAdventureMovies");

            form.Show();
        }
Exemplo n.º 16
0
        private void topRatedMoviesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("TopRatedMovies");

            form.Show();
        }
Exemplo n.º 17
0
        private void newsToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("News");

            form.Show();
        }
Exemplo n.º 18
0
        private void buttonMusical_Click(object sender, EventArgs e)
        {
            UniversalPage form = new UniversalPage("GenderMusicalMovies");

            form.Show();
        }