焦点行事件调整

dhzzyy
luoxingjian 6 months ago
parent c03605a41b
commit 7e6fd919da
  1. 6
      PEIS/View/Setting/HazardTypeForm.cs

@ -150,7 +150,11 @@ namespace PEIS.View.Setting
{ {
int hazardTypeIndex = gVHazardType.FocusedRowHandle; int hazardTypeIndex = gVHazardType.FocusedRowHandle;
var hazardTypeRow = gVHazardType.GetRow(hazardTypeIndex) as DictHazardType; var hazardTypeRow = gVHazardType.GetRow(hazardTypeIndex) as DictHazardType;
GetHTypeFItem?.Invoke(this, new Args<HTypeFItemInfo>() { Eid = hazardTypeRow.ID }); if (hazardTypeRow!=null)
{
GetHTypeFItem?.Invoke(this, new Args<HTypeFItemInfo>() { Eid = hazardTypeRow.ID });
}
} }
private void TsmiDelete_Click(object sender, EventArgs e) private void TsmiDelete_Click(object sender, EventArgs e)
{ {

Loading…
Cancel
Save