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 DeleteUserVerify_Form : Form
12
    public partial class Delete_User_Verify_Form : Form
13
    {
13
    {
14
        private List<string> selectedUsers = new List<string>();
14
        private List<string> selectedUsers = new List<string>();
15
        public DeleteUserVerify_Form(List<string> users)
15
        public Delete_User_Verify_Form(List<string> users)
16
        {
16
        {
17
            selectedUsers = users;
17
            selectedUsers = users;
18
            InitializeComponent();
18
            InitializeComponent();
19
            this.txt_Password.Focus();
19
            this.txt_Password.Focus();
20
 
20
 
Line 38... Line 38...
38
                            error = true;
38
                            error = true;
39
                        }
39
                        }
40
                    }
40
                    }
41
                }
41
                }
42
                if (error == false)
42
                if (error == false)
43
                    if (!ManageUserAccounts.DeleteUser(selectedUsers))
43
                    if (!Manage_User_Accounts.DeleteUser(selectedUsers))
44
                    {
44
                    {
45
                        DebugText.appendText("Error occured when trying to delete user");
45
                        Debug.appendText("Error occured when trying to delete user");
46
                        MessageBox.Show("Error occured when trying to delete user", "Error");
46
                        MessageBox.Show("Error occured when trying to delete user", "Error");
47
                    }
47
                    }
48
                this.Close();
48
                this.Close();
49
            }
49
            }
50
        }
50
        }