Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CadastrarProduto cadastrarProduto = new CadastrarProduto();

            if (cadastrarProduto.NewProduct(tbName.Text, tbTipo.Text, tbValue.Text, cbCategorias.Text))
            {
                MessageBox.Show("success");
                tbName.Text       = "";
                tbValue.Text      = "";
                cbCategorias.Text = "";
                tbTipo.Text       = "";
            }
            else
            {
                MessageBox.Show("error");
            }
        }