예제 #1
0
        private void labelActor5_Click(object sender, EventArgs e)
        {
            ActorsOrDirectorsPage actor5page = new ActorsOrDirectorsPage(this, "Actor", ActorFirstNames[4], ActorLastNames[4]);

            actor5page.Show();
            this.Hide();
        }
예제 #2
0
        private void labelNameofDirector2_Click(object sender, EventArgs e)
        {
            ActorsOrDirectorsPage aodp = new ActorsOrDirectorsPage(this, "Regizor", DirectorFirstNames[1], DirectorLastNames[1]);

            aodp.Show();
            this.Hide();
        }
예제 #3
0
        private void labelActor_Click(object sender, EventArgs e)
        {
            Label l = (Label)sender;
            ActorsOrDirectorsPage actor1page = new ActorsOrDirectorsPage(this, "Actor", ActorFirstNames[0], ActorLastNames[0]);

            actor1page.Show();
            this.Hide();
        }
 private void dataGridViewUniversal_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (MemberFieldOption.Equals("Movies"))
     {
         MoviePage mp = new MoviePage(dataGridViewUniversal.Rows[e.RowIndex].Cells[1].Value.ToString(), this, "Movie");
         mp.Show();
         this.Hide();
     }
     else if (MemberFieldOption.Equals("TVSeries"))
     {
         MoviePage mp = new MoviePage(dataGridViewUniversal.Rows[e.RowIndex].Cells[1].Value.ToString(), this, "TVSeries");
         mp.Show();
         this.Hide();
     }
     else if (MemberFieldOption.Equals("News"))
     {
         string   text = File.ReadAllText(paths[e.RowIndex]);
         NewsPage np   = new NewsPage(dataGridViewUniversal.Rows[e.RowIndex].Cells[0].Value.ToString(), text);
         np.Show();
     }
     else if (MemberFieldOption.Equals("Actors"))
     {
         ActorsOrDirectorsPage aodp = new ActorsOrDirectorsPage(this, "Actor", dataGridViewUniversal.Rows[e.RowIndex].Cells[2].Value.ToString(), dataGridViewUniversal.Rows[e.RowIndex].Cells[1].Value.ToString());
         aodp.Show();
         this.Hide();
     }
     else if (MemberFieldOption.Equals("Directors"))
     {
         ActorsOrDirectorsPage aodp = new ActorsOrDirectorsPage(this, "Regizor", dataGridViewUniversal.Rows[e.RowIndex].Cells[2].Value.ToString(), dataGridViewUniversal.Rows[e.RowIndex].Cells[1].Value.ToString());
         aodp.Show();
         this.Hide();
     }
     else if (MemberFieldOption.Equals("Gender"))
     {
         BindByGender(dataGridViewUniversal.Rows[e.RowIndex].Cells[0].Value.ToString());
     }
 }