Example #1
0
        private void btnHome_Click(object sender, EventArgs e)
        {
            string funcao = Properties.Settings.Default.FuncaoUsuario;

            if (funcao == "Admin")
            {
                UC_Dashboard ud = new UC_Dashboard();
                AddControls(ud);
            }
            else
            {
                MessageBox.Show("Não tens permissão para acessar!...", "Permissão negada", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Example #2
0
        private void btnDashboard_Click(object sender, EventArgs e)
        {
            UC_Dashboard ud = new UC_Dashboard();

            addControls(ud);
        }
Example #3
0
        private void informatiiButton_Click(object sender, EventArgs e)
        {
            UC_Dashboard ud = new UC_Dashboard();

            addControls(ud);
        }