Ejemplo n.º 1
0
        private void MenuItemAboutMe_Click(object sender, EventArgs e)
        {
            PersonalInfo personalInfo = new PersonalInfo(this._config.ID, this._rcUser.Authority.ToString());

            while (personalInfo.ShowDialog() == DialogResult.OK && personalInfo.TBoxOldPassword.Text.Length > 0)
            {
                if (!(personalInfo.TBoxNewPassword.Text != personalInfo.TBoxRePassword.Text))
                {
                    this._rcUser.ChangePassword(Utility.GetHashedPassword(personalInfo.TBoxOldPassword.Text), Utility.GetHashedPassword(personalInfo.TBoxNewPassword.Text));
                    break;
                }
                Utility.ShowErrorMessage(LocalizeText.Get(153));
            }
        }
Ejemplo n.º 2
0
        private void menuItemU_Click(object sender, EventArgs e)
        {
            PersonalInfo info = new PersonalInfo();

            info.ShowDialog();
        }
Ejemplo n.º 3
0
        private void bbi_InfoPerson_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            PersonalInfo fpi = new PersonalInfo(Id_Employee);

            fpi.ShowDialog();
        }