Ejemplo n.º 1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            frmAddEditora frmAdd = new frmAddEditora();

            frmAdd.ShowDialog();
            this.editorasTableAdapter.Insert(frmAdd.editora.Nome, frmAdd.editora.Descricao);
            this.editorasTableAdapter.Fill(this.sistemaBibliotecaDBDataSet.Editoras);
        }
Ejemplo n.º 2
0
        private void BtnAdicionar_Click(object sender, EventArgs e)
        {
            frmAddEditora addEditora = new frmAddEditora();

            addEditora.ShowDialog();

            if (!string.IsNullOrEmpty(addEditora.novaEditora?.Nome))
            {
                this.editorasTableAdapter.Insert(addEditora.novaEditora.Nome,
                                                 addEditora.novaEditora.Descricao);
            }

            this.editorasTableAdapter.Fill(sistemaBibliotecaDBDataSet.Editoras);
        }
Ejemplo n.º 3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            frmAddEditora formAdd = new frmAddEditora();

            formAdd.ShowDialog();

            this.editoraTableAdapter.Insert(
                formAdd.EditoraRow.Nome,
                formAdd.EditoraRow.Descricao

                );

            this.editoraTableAdapter.CustomQuery(this.sistemaBibliotecaHBSISDataSet.Editora);
        }
Ejemplo n.º 4
0
        private void Button1_Click(object sender, EventArgs e)
        {
            frmAddEditora formAddEditora = new frmAddEditora();

            formAddEditora.ShowDialog();
            if (!string.IsNullOrEmpty(formAddEditora.editoraRow?.Nome))
            {
                this.editoraTableAdapter.Insert(
                    formAddEditora.editoraRow.Nome,
                    formAddEditora.editoraRow.Descricao
                    );
            }
            this.editoraTableAdapter.SelectQuery(this.sistemaBibliotecaDBDataSet.Editora);
        }