Esempio n. 1
0
        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            var res = searchCl.searchUser(txtSerch.Text).ToList();

            updateUser newUpdate = new updateUser(res[0].userName, currentUser);

            this.NavigationService.Navigate(newUpdate);
        }
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         userDetailsTB selectedUser  = (userDetailsTB)userList.SelectedItem;
         updateUser    newUserUpdate = new updateUser(selectedUser.userName, currentUS);
         this.NavigationService.Navigate(newUserUpdate);
     }
     catch
     {
         MessageBox.Show("Please select record first!", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
Esempio n. 3
0
        private void MenuItem_Click_14(object sender, RoutedEventArgs e)
        {
            updateUser newUpdate = new updateUser(null, us);

            homeFrame.Content = newUpdate;
        }