private void tab1_btn_them_Click(object sender, EventArgs e) { fUser fUser = new fUser("create", "-1"); //-1 == k truyền. fUser.FormClosing += new FormClosingEventHandler(this.fUser_FormClosing); fUser.Show(); }
private void tab1_btn_sua_Click(object sender, EventArgs e) { if (id == "-1") { MessageBox.Show("Bạn chưa chọn nhân viên.", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { fUser fUser = new fUser("edit", id); fUser.FormClosing += new FormClosingEventHandler(this.fUser_FormClosing); fUser.Show(); } }
private void quảnLýTàiKhoảnToolStripMenuItem_Click(object sender, EventArgs e) { fUser fUser = new fUser("view", user.iId); fUser.Show(); }