焦点行事件调整

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

@ -150,8 +150,12 @@ 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;
if (hazardTypeRow!=null)
{
GetHTypeFItem?.Invoke(this, new Args<HTypeFItemInfo>() { Eid = hazardTypeRow.ID }); 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)
{ {
int hazardTypeIndex = gVHFeelItem.FocusedRowHandle; int hazardTypeIndex = gVHFeelItem.FocusedRowHandle;

Loading…
Cancel
Save