Esempio n. 1
0
 public SearchForUser(int iRequestType, PeopleManagement parent, SQLiteConnection sql_conn)
 {
     InitializeComponent();
     sqlite_conn = sql_conn;
     LoadUserSelect();
     frmParent = parent;
 }
Esempio n. 2
0
 public SearchForUser(int iRequestType, PeopleManagement parent, SQLiteConnection sql_conn)
 {
     InitializeComponent();
     sqlite_conn = sql_conn;
     LoadUserSelect();
     frmParent = parent;
 }
Esempio n. 3
0
        private void MenuEditPeople_Click(object sender, EventArgs e)
        {
            if (!bIsAdmin)
            {
                Form fPassword = new PasswordPrompt(this);
                fPassword.ShowDialog(this);
            }

            if (bIsAdmin || CheckPassword())
            {
                bIsAdmin = bStayAdmin;
                Form fPeople = new PeopleManagement(sqlite_conn);
                fPeople.Show();
            }
            else
            {
                MessageBox.Show("Invalid password.");
            }
        }
Esempio n. 4
0
        private void MenuEditPeople_Click(object sender, EventArgs e)
        {
            if (!bIsAdmin)
            {
                Form fPassword = new PasswordPrompt(this);
                fPassword.ShowDialog(this);
            }

            if (bIsAdmin || CheckPassword())
            {
                bIsAdmin = bStayAdmin;
                Form fPeople = new PeopleManagement(sqlite_conn);
                fPeople.Show();
            }
            else
            {
                MessageBox.Show("Invalid password.");
            }
        }