示例#1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            frmAddEditoras frmAdd = new frmAddEditoras();

            frmAdd.ShowDialog();
            this.editorasTableAdapter.Fill(this.sistemaBibliotecaDBDataSet.Editoras);
        }
示例#2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            frmAddEditoras telaAddEditoras = new frmAddEditoras();

            telaAddEditoras.ShowDialog();

            if (!string.IsNullOrEmpty(telaAddEditoras.modelEditora?.Nome))
            {
                this.editorasTableAdapter.Insert(
                    telaAddEditoras.modelEditora.Nome,
                    telaAddEditoras.modelEditora.Descricao
                    );
                this.editorasTableAdapter.Fill(this.sistemaBibliotecaDBDataSet.Editoras);
            }
        }
示例#3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            frmAddEditoras addEditora = new frmAddEditoras();

            addEditora.ShowDialog();

            // if (!string.IsNullOrEmpty(frmAddAutores.autoresRow?.Registro))
            this.editorasTableAdapter.Insert(
                addEditora.editorasRow.Nome,
                addEditora.editorasRow.Descricao

                );
            // atualiza tabela
            this.editorasTableAdapter.Fill(this.sistemaBibliotecaDBDataSet.Editoras);
        }