Exemple #1
0
        private void AdminBtn_Click(object sender, RoutedEventArgs e)
        {
            AdminMain window = new AdminMain();

            window.Show();
            this.Close();
        }
Exemple #2
0
 private void UsernameLabel_Click(object sender, RoutedEventArgs e)
 {
     if (LoginInfo.username == "admin")
     {
         AdminMain window = new AdminMain();
         window.Show();
         this.Close();
     }
     else
     {
         ContentSwitch.Content = new UserAlterarConta();
     }
 }