예제 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            fmrAdicionarMarca formAdd = new fmrAdicionarMarca();

            formAdd.ShowDialog();

            this.marcasTableAdapter.Insert(
                formAdd.carrosRow.Nome,
                true,
                1,
                1,
                DateTime.Now,
                DateTime.Now
                );
            //Atualiza
            this.marcasTableAdapter.Fill(this.querysInnerJoinDataSet1.Marcas);
        }
예제 #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            fmrAdicionarMarca formAddM = new fmrAdicionarMarca();

            formAddM.ShowDialog();

            if (!string.IsNullOrEmpty(formAddM.marcasRow?.Nome))

            {
                this.marcasTableAdapter.Insert(
                    formAddM.marcasRow.Nome,
                    true,
                    1,
                    1,
                    DateTime.Now,
                    DateTime.Now
                    );

                this.marcasTableAdapter.Fill(this.querysInnerJoinDataSet.Marcas);
            }
        }