Beispiel #1
0
        private void btnVisualizar_Click(object sender, EventArgs e)
        {
            Filme         f    = DAO.Read(int.Parse(dgvFilmes.CurrentRow.Cells[0].Value.ToString()));
            FormGerFilmes form = new FormGerFilmes(false, f);

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
        }
Beispiel #2
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            FormGerFilmes form = new FormGerFilmes();

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            LoadDatabase();
            Fill("");
        }
Beispiel #3
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            Filme         f    = DAO.Read(int.Parse(dgvFilmes.CurrentRow.Cells[0].Value.ToString()));
            FormGerFilmes form = new FormGerFilmes(true, f);

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            LoadDatabase();
            Fill("");
        }