private void btn_AddCustomerGroup_Click(object sender, EventArgs e)
        {
            frm_NewCustomerGroup frm = new frm_NewCustomerGroup();

            frm.FormClosed     += new FormClosedEventHandler(dongformGroup);
            frm.customerGroupId = 0;
            frm.Show();
        }
Exemplo n.º 2
0
 private void btn_EditCustomerGroup_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (grdv_CustomerGroup.RowCount > 0)
     {
         Int64 customerGroupId    = Convert.ToInt64(grdv_CustomerGroup.GetRowCellValue(indexCustomerGroup, "customer_group_id").ToString());
         frm_NewCustomerGroup frm = new frm_NewCustomerGroup();
         frm.FormClosed     += new FormClosedEventHandler(dongformGroup);
         frm.customerGroupId = customerGroupId;
         frm.Show();
     }
     else
     {
         messeage.error("không có Nhóm Khách Hàng Để Sửa!!!");
     }
 }