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

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

            // frmParent frmParent = this;
            // SearchUser.MdiParent = frmParent;
            SearchUser.ShowDialog();
        }
示例#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();
        }
示例#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();
     }
 }
示例#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();
     }
 }
示例#6
0
 public frmSearchUser()
 {
     InitializeComponent();
     TrySearch("", -1);
     users = this;
 }
 public frmMaintainUsers(frmSearchUser user)
 {
     InitializeComponent();
     this.user = user;
 }