示例#1
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            MenuItem          tmp  = (MenuItem)sender;
            GetAllUsersResult user = (GetAllUsersResult)tmp.DataContext;

            mwvm.DeleteUser(user.UserID);
            mwvm.UpdateListUsers();
        }
示例#2
0
        private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListBox           tmp  = (ListBox)sender;
            GetAllUsersResult user = (GetAllUsersResult)tmp.SelectedItem;

            if (user != null)
            {
                mwvm.UpdateCurrentUser(user.UserID);
            }
        }