Esempio n. 1
0
        private void userCenterBtn_Click(object sender, RoutedEventArgs e)
        {
            UserCenterWindow userCenterWindow = new UserCenterWindow();

            userCenterWindow.Show();
            userCenterWindow.userID = userID;

            userCenterWindow.userPasswd.Text   = AccessHelper.GetUserPasswd(userID);
            userCenterWindow.userNickName.Text = AccessHelper.GetUserNickName(userID);
            userCenterWindow.userPhone.Text    = AccessHelper.GetUserPhone(userID);
            userCenterWindow.userQQ.Text       = AccessHelper.GetUserQQ(userID);
            userCenterWindow.userEmail.Text    = AccessHelper.GetUserEmail(userID);
            userCenterWindow.userAddress.Text  = AccessHelper.GetUserAddress(userID);
        }
        private void cancelBtn_Click(object sender, RoutedEventArgs e)
        {
            updateBtn.IsEnabled  = true;
            confirmBtn.IsEnabled = false;
            cancelBtn.IsEnabled  = false;

            userPasswd.IsEnabled   = false;
            userNickName.IsEnabled = false;
            userPhone.IsEnabled    = false;
            userQQ.IsEnabled       = false;
            userEmail.IsEnabled    = false;
            userAddress.IsEnabled  = false;

            userPasswd.Text   = AccessHelper.GetUserPasswd(userID);
            userNickName.Text = AccessHelper.GetUserNickName(userID);
            userPhone.Text    = AccessHelper.GetUserPhone(userID);
            userQQ.Text       = AccessHelper.GetUserQQ(userID);
            userEmail.Text    = AccessHelper.GetUserEmail(userID);
            userAddress.Text  = AccessHelper.GetUserAddress(userID);
        }