//右键菜单修改 物料分类 private void MaterialType_Modify_BarButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { materialType = (Material_Type)PartsMange_MaterialPropertyBuild_AddMaterialProperty_MaterialClassify_GridView.GetFocusedRow(); ChooseMaterialType CM = new ChooseMaterialType(); CM.Tag = "Modify"; CM.ShowDialog(); }
public void DeleteMaterialType() { var id = PartsMange_MaterialPropertyBuild_AddMaterialProperty_MaterialClassify_GridView.GetFocusedRowCellValue("Id"); MessageBox.Show("当前删除的数据为:" + id); }