private void EditarFornecedor(object o, EventArgs e) { BLL.Fornecedor f = new BLL.Fornecedor(); f.CodigoFornecedor = Convert.ToInt32(txtCodigo.Text); f.NomeFantasia = txtFantasia.Text; f.CNPJ = txtCnpj.Text; f.RazaoSocial = txtRazao.Text; f.Email = txtEmail.Text; f.Tel = txtTel.Text; f.CEP = txtCep.Text; f.Complemento = txtComplemento.Text; f.Numero = Convert.ToInt32(txtNumero.Text); f.AlterarComParametro(); MessageBox.Show("Fornecedor Editado com sucesso!!!!"); }
public void Alterar(object o, EventArgs e) { if (VerificarDigitacao() == false) { return; } BLL.Fornecedor f = new BLL.Fornecedor(); f.RazaoSocial = txtRazao.Text; f.NomeFantasia = txtNomeFant.Text; f.CEP = txtCep.Text; f.Numero = txtNumero.Text; f.Complemento = txtComplemento.Text; f.StatusFornecedor = 1; f.CodigoFornecedor = Codigo; f.AlterarComParametro(); MessageBox.Show("alterado com sucesso"); Close(); }