コード例 #1
0
        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();
        }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
        private void quảnLýTàiKhoảnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fUser fUser = new fUser("view", user.iId);

            fUser.Show();
        }