Exemple #1
0
        private void BtnRefresh_Click(object sender, EventArgs e)
        {
            FPerfilPeli form = new FPerfilPeli(idPeli);

            form.Show();
            form.FormClosing += (obj, args) => { this.Close(); };
            this.Hide();
        }
Exemple #2
0
        private void DgvPeliculasUser_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (dgvPeliculasUser.SelectedCells.Count > 0)
            {
                int selectedrowindex = dgvPeliculasUser.SelectedCells[0].RowIndex;

                DataGridViewRow selectedRow = dgvPeliculasUser.Rows[selectedrowindex];

                int id = Convert.ToInt32(selectedRow.Cells["ID"].Value);

                FPerfilPeli frm2 = new FPerfilPeli(id);
                frm2.FormClosed += new FormClosedEventHandler(frm2_FormClosed);
                frm2.Show();
                this.Hide();
            }
        }
Exemple #3
0
        private void DgvPelis_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvPelis.SelectedCells.Count > 0)
            {
                int selectedrowindex = dgvPelis.SelectedCells[0].RowIndex;

                DataGridViewRow selectedRow = dgvPelis.Rows[selectedrowindex];

                int id = Convert.ToInt32(selectedRow.Cells["idpeli"].Value);

                FPerfilPeli form = new FPerfilPeli(id);
                form.Show();
                form.FormClosing += (obj, args) => { this.Close(); };
                this.Hide();
            }
        }
Exemple #4
0
        private void BtnPeli10_Click(object sender, EventArgs e)
        {
            int id;

            if (!peliLista2)
            {
                id = listaPelis[9].Id_pelicula;
            }
            else
            {
                id = listaPelis[19].Id_pelicula;
            }

            FPerfilPeli form = new FPerfilPeli(id);

            form.Show();
            form.FormClosing += (obj, args) => { this.Close(); };
            this.Hide();
        }