private void button1_Click(object sender, EventArgs e) { try { AtualizarUsuario nv = new AtualizarUsuario(); DTOUser astro = lstAtivos.SelectedItem as DTOUser; nv.Alterar(astro.Id, txtEmail.Text, txtNome.Text, txtSenha.Text, txtUser.Text, txtCpf.Text, txtTelefone.Text, txtCep.Text, nupCasa.Value, decimal.Parse(txtBruto.Text), lbSetor.SelectedItem.ToString(), chkAdm.Checked, chkVend.Checked, chkComps.Checked, chkCont.Checked, chkFin.Checked, chkRh.Checked, nupVa.Value, nupVr.Value, nupSf.Value, chkSaude.Checked, chkVt.Checked, rbnRh.Checked, rbnGeral.Checked, rbnMkt.Checked, rbnCont.Checked, rbnGerenteLocal.Checked); if (nv.Clear == true) { frmAlterarDadosUsuarios cd = new frmAlterarDadosUsuarios(); cd.Show(); this.Close(); } } catch (Exception) { MessageBox.Show("OCORREU UM PROBLEMA!ESTÁ TUDO CORRETAMENTE PREENCHIDO?", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void aTUALIZAÇÃOToolStripMenuItem_Click(object sender, EventArgs e) { frmAlterarDadosUsuarios a = new frmAlterarDadosUsuarios(); a.Show(); }