Example #1
0
        private void Btn_Profile(object sender, RoutedEventArgs e)
        {
            var manager_profile = new ManagerHome();

            manager_profile.Show();
            this.Close();
        }
Example #2
0
        private void Button_Click_Profile(object sender, RoutedEventArgs e)
        {
            var maanager_home = new ManagerHome();

            maanager_home.Show();
            this.Close();
        }
 private void Manager_Home(object sender, RoutedEventArgs e)
 {
     if (tbPassword.Password == pass && tbUsername.Text == us)
     {
         managerHome = new ManagerHome();
         managerHome.Show();
         this.Close();
     }
     else if (tbUsername.Text == us && tbPassword.Password != pass)
     {
         tbPassword.BorderBrush = Brushes.Red;
         TestText.Text          = "Pogrešna lozinka!";
         MessageBox.Show("Pogrešna lozinka!", "Upozorenje!", MessageBoxButton.OK, MessageBoxImage.Error);
     }
     else
     {
         tbPassword.BorderBrush = Brushes.Red;
         tbUsername.BorderBrush = Brushes.Red;
         TestText.Text          = "";
         MessageBox.Show("Pogrešno korisničko ime ili lozinka!", "Upozorenje!", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Example #4
0
 private void Btn_Profile(object sender, RoutedEventArgs e)
 {
     mh = new ManagerHome();
     mh.Show();
     this.Close();
 }