private void MaintainUserToolStripMenuItem_Click(object sender, EventArgs e) { frmSearchUser searchUsers = new frmSearchUser(); frmParent parent = this; searchUsers.MdiParent = parent; searchUsers.Show(); }
private void BtnSearch_Click(object sender, EventArgs e) { frmSearchUser SearchUser = new frmSearchUser(); // frmParent frmParent = this; // SearchUser.MdiParent = frmParent; SearchUser.ShowDialog(); }
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(); }
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(); } }
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(); } }
public frmSearchUser() { InitializeComponent(); TrySearch("", -1); users = this; }
public frmMaintainUsers(frmSearchUser user) { InitializeComponent(); this.user = user; }