Exemplo n.º 1
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if (textBox_FirstN.Text == "admin" & textBox_LastN.Text == "admin")
     {
         AdminPage ap = new AdminPage();
         this.NavigationService.Navigate(ap);
     }
     else
     {
         string        user = textBox_FirstN.Text + " " + textBox_LastN.Text;
         UserDashboard ud   = new UserDashboard(user);
         this.NavigationService.Navigate(ud);
     }
 }
        private void Button_StopSession_Click(object sender, RoutedEventArgs e)
        {
            AdminPage ap = new AdminPage();

            this.NavigationService.Navigate(ap);
        }