Esempio n. 1
0
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPasswordUpadate_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                UpdatePassWord updatePwd = new UpdatePassWord();
                updatePwd.ShowDialog();

                if (!string.IsNullOrEmpty(updatePwd.textBlock1.Text))
                {
                    if (this.UpdatePasswordEvent != null)
                    {
                        this.UpdatePasswordEvent(TagEdit, updatePwd.textBlock1.Text.Trim());
                    }
                }
            }
            catch (Exception ex)
            {
                MethodLb.CreateLog(this.GetType().FullName, "btnPasswordUpadate_Click", ex.ToString(), sender, e);
            }
            finally
            {
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 修改用户密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void mEditPlan_Click5(object sender, RoutedEventArgs e)
        {
            try
            {
                string         tagPwd    = "LDAP://" + ((MenuItem)sender).Tag.ToString();
                UpdatePassWord updatePwd = new UpdatePassWord();
                updatePwd.ShowDialog();

                if (!string.IsNullOrEmpty(updatePwd.textBlock1.Text))
                {
                    if (this.UpdatePasswordEvent != null)
                    {
                        this.UpdatePasswordEvent(tagPwd, updatePwd.textBlock1.Text.Trim());
                    }
                }
            }
            catch (Exception ex)
            {
                MethodLb.CreateLog(this.GetType().FullName, "mEditPlan_Click5", ex.ToString(), sender, e);
            }
            finally
            {
            }
        }