示例#1
0
        public void Back(object sender, RoutedEventArgs e)
        {
            var buildingsWindow = new BuildingsWindow();

            buildingsWindow.Show();
            Close();
        }
        private void ViewBuildings(object sender, RoutedEventArgs e)
        {
            var userId          = (Guid)((Button)sender).Tag;
            var buildingsWindow = new BuildingsWindow(userId);

            buildingsWindow.Show();
            Close();
        }
示例#3
0
 private void Login(object sender, RoutedEventArgs e)
 {
     if (_userManager.LoginUser(Email.Text, Password.Password))
     {
         var buildingsWindow = new BuildingsWindow();
         buildingsWindow.Show();
         Close();
     }
     else
     {
         MessageBox.Show("Invalid user data. User does not exist.", "Login Result", MessageBoxButton.OK);
     }
 }