private void grv_thongtincanbo_DoubleClick(object sender, EventArgs e) { form_quanlycanbo f = new form_quanlycanbo(); f.bool_sua = true; try { int i = (int)grv_thongtincanbo.GetFocusedRowCellValue("ma_canbo"); f._macanbo = i; f.ShowDialog(); } catch (Exception) { XtraMessageBox.Show("Vui lòng chọn thông tin cần sửa"); } }
private void bar_themcanbo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { form_quanlycanbo f = new form_quanlycanbo(); f.ShowDialog(); }