Beispiel #1
0
        private void butSua_Click(object sender, EventArgs e)
        {
            // frmThemNguoiDung(DataSet dset, int userid,string s_hoTen, string tenDangNhap, string psw, string right, bool change)
            frmThemNguoiDung f = new frmThemNguoiDung(ds, int.Parse(dtgUser[dtgUser.CurrentCell.RowNumber, 0].ToString()), dtgUser[dtgUser.CurrentCell.RowNumber, 1].ToString(), dtgUser[dtgUser.CurrentCell.RowNumber, 2].ToString(), dtgUser[dtgUser.CurrentCell.RowNumber, 3].ToString(), dtgUser[dtgUser.CurrentCell.RowNumber, 4].ToString(), true);

            f.ShowDialog();
            // ds = f.dsright;
            ds = pq.Load_TenUser();
            dtgUser.DataSource = ds.Tables[0];
        }
Beispiel #2
0
        private void butThem_Click(object sender, EventArgs e)
        {
            frmThemNguoiDung f = new frmThemNguoiDung(ds);

            // f.MdiParent = this;
            f.ShowDialog();
            //  ds = f.dsright;
            ds = pq.Load_TenUser();
            dtgUser.DataSource = ds.Tables[0];
        }