Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormInicial login = new FormInicial();

            Hide();
            login.Show();
        }
        public static void gerarDesenhoFundacao()
        {
            Document    acDoc        = Application.DocumentManager.MdiActiveDocument;
            FormInicial frmPrincipal = new FormInicial();

            frmPrincipal.ShowDialog();
        }
Beispiel #3
0
        private void btn_Entrar_Click(object sender, EventArgs e)
        {
            Vendedor vendedor = new Vendedor();

            vendedor.NomeVendedor = txtNome.Text;
            vendedor.Rg           = Convert.ToDouble(txtRg.Value);
            vendedor.Cpf          = txtCpf.Text;
            vendedor.Email        = txtEmail.Text;
            vendedor.Senha        = txtSenha.Text;
            vendedor.Numero       = Convert.ToInt32(txtNumero.Value);
            vendedor.Cep          = txtCep.Text;
            vendedor.Rua          = txtRua.Text;
            vendedor.Bairro       = txtBairro.Text;
            vendedor.Cidade       = txtCidade.Text;
            vendedor.Estado       = txtEstado.Text;

            controle.cadastrarVendedor(vendedor);

            MessageBox.Show("Cadastro efetuado com sucesso!", "Atenção!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            FormInicial login = new FormInicial();

            Hide();
            login.Show();
        }
Beispiel #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            var _formInicial = new FormInicial();

            _formInicial.Show();
        }