コード例 #1
0
        private void dataGridViewTOP_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int       a         = e.RowIndex;
            MoviePage moviepage = new MoviePage(dataGridViewTOP.Rows[e.RowIndex].Cells[1].Value.ToString());

            moviepage.Show();
        }
コード例 #2
0
        private void label_click(object sender, EventArgs e)
        {
            Label l    = (Label)sender;
            char  intt = l.Name[10];
            int   a    = 0;//= Convert.ToInt32(intt) -1;

            if (intt.Equals('1'))
            {
                a = 0;
            }
            else if (intt.Equals('2'))
            {
                a = 1;
            }
            else if (intt.Equals('3'))
            {
                a = 2;
            }
            else if (intt.Equals('4'))
            {
                a = 3;
            }
            MoviePage mp = new MoviePage(l.Text, this, MemberMovies[a]);

            mp.Show();
            this.Hide();
        }
コード例 #3
0
        private void labelMovie1_Click(object sender, EventArgs e)
        {
            MoviePage mp = new MoviePage(labelMovie1.Text, this, MemberMovies[0]);

            mp.Show();
            this.Hide();
        }
コード例 #4
0
 private void dataGridViewUniversal_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (MemberMoviesOrTVSeries.Equals("Movies"))
     {
         MoviePage mp = new MoviePage(dataGridViewUniversal.Rows[e.RowIndex].Cells[1].Value.ToString());
         mp.Show();
     }
     else if (MemberMoviesOrTVSeries.Equals("News"))
     {
         string   text = File.ReadAllText(paths[e.RowIndex]);
         NewsPage np   = new NewsPage(dataGridViewUniversal.Rows[e.RowIndex].Cells[0].Value.ToString(), text);
         np.Show();
     }
 }
コード例 #5
0
 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());
     }
 }