示例#1
0
        private void BCCSair_Click(object sender, EventArgs e)
        {
            TelaCadastro telaInicial = new TelaCadastro();

            this.Hide();
            telaInicial.ShowDialog();
        }
示例#2
0
 private void BMCadastro_Click(object sender, EventArgs e)
 {
     if (label2.Text == "Administrador")
     {
         TelaCadastro telaCadastro = new TelaCadastro();
         this.Hide();
         telaCadastro.ShowDialog();
     }
     else if (label2.Text == "Secretaria")
     {
         TelaCadastro telaCadastro = new TelaCadastro();
         this.Hide();
         telaCadastro.ShowDialog();
     }
     else
     {
         MessageBox.Show("Você não tem permissão para esta ferramenta", "Erro!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }