Exemplo n.º 1
0
        private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmDanhSachNhom_Update frm = new frmDanhSachNhom_Update(true, "Thêm Tổ, Nhóm", "TN", null, "frmDanhSachNhom");

            frm.Owner = this;
            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!btnEdit.Enabled)
            {
                return;
            }
            int SelectedRow = gridItemDetail.FocusedRowHandle;

            if (SelectedRow >= 0)
            {
                DataRow drow   = gridItemDetail.GetDataRow(SelectedRow);
                string  _value = drow["GroupCode"].ToString();

                frmDanhSachNhom_Update frm = new frmDanhSachNhom_Update(false, "Sửa Tổ, nhóm", "TN", _value, "frmDanhSachNhom");
                frm.Owner = this;
                frm.ShowDialog();
            }
        }