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 ToggleUserVerify_Form : Form
12
    public partial class Toggle_User_Verify_Form : Form
13
    {
13
    {
14
        private string selectedUser;
14
        private string selectedUser;
15
        public ToggleUserVerify_Form(string user)
15
        public Toggle_User_Verify_Form(string user)
16
        {
16
        {
17
            selectedUser = user;
17
            selectedUser = user;
18
            InitializeComponent();
18
            InitializeComponent();
19
            this.txt_Password.Focus();
19
            this.txt_Password.Focus();
20
 
20
 
Line 24... Line 24...
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 == Settings_Form.globalAdminPassword)
27
            if (tb.Text == Settings_Form.globalAdminPassword)
28
            {
28
            {
29
                if (!ManageUserAccounts.ToggleShare(selectedUser))
29
                if (!Manage_User_Accounts.ToggleShare(selectedUser))
30
                {
30
                {
31
                    DebugText.appendText("Error in toggling share");
31
                    Debug.appendText("Error in toggling share");
32
                    MessageBox.Show("Error in toggling share", "Error");
32
                    MessageBox.Show("Error in toggling share", "Error");
33
                }
33
                }
34
                this.Close();
34
                this.Close();
35
            }
35
            }
36
        }
36
        }