Example #1
0
        private void Button_entrar_Click(object sender, RoutedEventArgs e)
        {
            Login l     = new Login();
            bool  teste = l.logar(textBox_Usuario.Text, textBox_Senha.Text);

            if (teste)
            {
                if (ControlViews.adm)
                {
                    new ControlViews();
                    this.Close();
                }
                else
                {
                    ControlViews.openMenuComum();
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("Por favor, verifique seu acesso com a sua instituição");
            }
        }
Example #2
0
 private void button_saida_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startSaida();
 }
Example #3
0
 private void button_triagem_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startTriagem();
 }
Example #4
0
 private void button_estoque_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startEstoque();
 }
Example #5
0
 private void button_registrarDoacao_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startRegistroDoacao();
 }
Example #6
0
 private void button_consultarFuncionarios_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startConsultaFunc();
 }
Example #7
0
 private void button_propaganda_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startPropagandas();
 }
Example #8
0
 private void button_mensagens_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startMensagens();
 }
Example #9
0
 private void button_checarRetiradas_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startAgendamento();
 }
Example #10
0
 private void button_checkin_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startCheckIn();
 }
Example #11
0
 private void Button_perfil_Click(object sender, RoutedEventArgs e)
 {
     ControlViews.startPerfil();
 }