Subversion Repositories Code-Repo

Rev

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

Rev 9 Rev 53
Line 22... Line 22...
22
            this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged);
22
            this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged);
23
        }
23
        }
24
        private void txt_Password_TextChanged(object sender, EventArgs e)
24
        private void txt_Password_TextChanged(object sender, EventArgs e)
25
        {
25
        {
26
            TextBox tb = (TextBox)sender;
26
            TextBox tb = (TextBox)sender;
27
            if (tb.Text == "tr33b3@rd")
27
            if (tb.Text == Settings_Form.globalAdminPassword)
28
            {
28
            {
29
                ManageUserAccounts.ToggleShare(selectedUser);
29
                if (!ManageUserAccounts.ToggleShare(selectedUser))
-
 
30
                {
-
 
31
                    DebugText.appendText("Error in toggling share");
-
 
32
                    MessageBox.Show("Error in toggling share", "Error");
-
 
33
                }
30
                this.Close();
34
                this.Close();
31
            }
35
            }
32
        }
36
        }
33
        private void btn_Cancel_Click(object sender, EventArgs e)
37
        private void btn_Cancel_Click(object sender, EventArgs e)
34
        {
38
        {