private void grv_thongtintocao_DoubleClick(object sender, EventArgs e) { form_thongtintocao f = new form_thongtintocao(); f.bool_sua = true; try { int i = (int)grv_thongtintocao.GetFocusedRowCellValue("id_thongtintocao1"); f.id_thongtintocao = i; f.ShowDialog(); } catch (Exception) { XtraMessageBox.Show("Vui lòng chọn đơn thư cần sửa"); } }
private void bar_sua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { form_thongtintocao f = new form_thongtintocao(); f.bool_sua = true; try { var y = grv_thongtintocao.GetFocusedRowCellValue("id_thongtintocao1"); int i = (int)grv_thongtintocao.GetFocusedRowCellValue("id_thongtintocao1"); f.id_thongtintocao = i; f.ShowDialog(); } catch (Exception) { XtraMessageBox.Show("Vui lòng chọn đơn thư cần sửa"); } }
private void bar_them_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { form_thongtintocao f = new form_thongtintocao(); f.ShowDialog(); }