private void button2_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            CadastroFornecedor fornecedor = new CadastroFornecedor();

            fornecedor.Show();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int tipo = AutenticacaoCliente.pegarTipo();

            if (tipo == 2)
            {
                this.Hide();
                Cadastro cadastro = new Cadastro();
                cadastro.Show();
            }
            else if (tipo == 1 || tipo == 0)
            {
                this.Hide();
                CadastroFornecedor cadastroFornecedor = new CadastroFornecedor();
                cadastroFornecedor.Show();
            }
        }