private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                NovoAtendente nv = new NovoAtendente();
                nv.Save(txtEmail.Text, txtNome.Text, txtPass.Text, txtUser.Text, txtCpf.Text, dtpNasc.Value, txtCep.Text, txtTelefone.Text, nupNumeroCasa.Value, decimal.Parse(txtSb.Text), chkAdm.Checked, chkVend.Checked, chkComps.Checked, chkCont.Checked, chkFin.Checked, chkRh.Checked, lbSetor.SelectedItem.ToString(), nupVa.Value, nupVr.Value, nupSf.Value, chkSaude.Checked, chkVt.Checked, rbnRh.Checked, rbnGeral.Checked, rbnMkt.Checked, rbnCont.Checked, rbnGerenteLocal.Checked);

                if (nv.Clear == true)
                {
                    frmCadastroDeUsuario cd = new frmCadastroDeUsuario();
                    cd.Show();
                    this.Close();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("OCORREU UM PROBLEMA! ESTÁ TUDO CORRETAMENTE PREENCHIDO?", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        private void aDMISSÃOToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastroDeUsuario cd = new frmCadastroDeUsuario();

            cd.Show();
        }