Exemplo n.º 1
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            Sessão        s    = DAO.Read(int.Parse(dgvSessao.CurrentRow.Cells[0].Value.ToString()));
            FormGerSessao form = new FormGerSessao(true, s);

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            LoadDatabase();
            Fill("");
        }
Exemplo n.º 2
0
        //Abre a Janela de vender ingressos
        private void btnProximoS_Click(object sender, EventArgs e)
        {
            SessaoDAO DAo = new SessaoDAO();

            pnSessões.Visible = false;
            pnFilmes.Visible  = true;
            Sessão         s = DAo.Read(int.Parse(dgvSessoes.CurrentRow.Cells[0].Value.ToString()));
            VenderIngresso V = new VenderIngresso(s);

            V.StartPosition = FormStartPosition.CenterParent;
            V.ShowDialog(this);
        }