Beispiel #1
0
        private void MaintainUserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSearchUser searchUsers = new frmSearchUser();
            frmParent     parent      = this;

            searchUsers.MdiParent = parent;
            searchUsers.Show();
        }
Beispiel #2
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            frmSearchUser SearchUser = new frmSearchUser();

            // frmParent frmParent = this;
            // SearchUser.MdiParent = frmParent;
            SearchUser.ShowDialog();
        }
Beispiel #3
0
        private void AddNewUserToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSearchUser    user   = new frmSearchUser();
            frmMaintainUsers users  = new frmMaintainUsers(user);
            frmParent        parent = this;

            users.setMode("add");
            users.clearForm();
            users.MdiParent = parent;
            users.Show();
        }
Beispiel #4
0
 private void MaintainToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     //maintain user
     if (getUserAdmin() == false)
     {
         MessageBox.Show("Access denied: Only admin users have access to this feature");
     }
     else
     {
         frmSearchUser searchUsers = new frmSearchUser();
         frmParent     parent      = this;
         searchUsers.MdiParent = parent;
         searchUsers.Show();
     }
 }
Beispiel #5
0
 private void AddToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     //add new user
     if (getUserAdmin() == false)
     {
         MessageBox.Show("Access denied: Only admin users have access to this feature");
     }
     else
     {
         frmSearchUser    user   = new frmSearchUser();
         frmMaintainUsers users  = new frmMaintainUsers(user);
         frmParent        parent = this;
         users.setMode("add");
         users.clearForm();
         users.MdiParent = parent;
         users.Show();
     }
 }
Beispiel #6
0
 public frmSearchUser()
 {
     InitializeComponent();
     TrySearch("", -1);
     users = this;
 }
 public frmMaintainUsers(frmSearchUser user)
 {
     InitializeComponent();
     this.user = user;
 }