Subversion Repositories Code-Repo

Rev

Rev 53 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 63
Line 7... Line 7...
7
using System.Text;
7
using System.Text;
8
using System.Windows.Forms;
8
using System.Windows.Forms;
9
 
9
 
10
namespace SWAT_Office_App
10
namespace SWAT_Office_App
11
{
11
{
12
    public partial class ResetUserPassword_Form : Form
12
    public partial class Reset_User_Password_Form : Form
13
    {
13
    {
14
        private string selectedUsername;
14
        private string selectedUsername;
15
        public ResetUserPassword_Form(string selectedUser)
15
        public Reset_User_Password_Form(string selectedUser)
16
        {
16
        {
17
            selectedUsername = selectedUser;
17
            selectedUsername = selectedUser;
18
            InitializeComponent();
18
            InitializeComponent();
19
            this.txt_Password1.Focus();
19
            this.txt_Password1.Focus();
20
            this.lbl_Prompt2.Visible = false;
20
            this.lbl_Prompt2.Visible = false;
Line 46... Line 46...
46
        {
46
        {
47
            this.Close();
47
            this.Close();
48
        }
48
        }
49
        private void btn_Ok_Click(object sender, EventArgs e)
49
        private void btn_Ok_Click(object sender, EventArgs e)
50
        {
50
        {
51
            if (!ManageUserAccounts.ChangeUserPassword(selectedUsername, txt_Password2.Text))
51
            if (!Manage_User_Accounts.ChangeUserPassword(selectedUsername, txt_Password2.Text))
52
            {
52
            {
53
                DebugText.appendText("Error occured while changing password");
53
                Debug.appendText("Error occured while changing password");
54
                MessageBox.Show("Error occured while changing password", "Error");
54
                MessageBox.Show("Error occured while changing password", "Error");
55
            }
55
            }
56
            this.Close();
56
            this.Close();
57
        }
57
        }
58
    }
58
    }