private void Refresh(int nIndex) { try { Datas tmp_data = IDDatas.getDataTable()[IDDataTable.Rows[nIndex]["ID"].ToString()]; Boolean bCheck = ProcessControl.CheckProcess(tmp_data.nPID); ChangeTextRow(nIndex, bCheck); if (bCheck == false) { IDDatas.getDataTable()[IDDataTable.Rows[nIndex]["ID"].ToString()].nPID = -1; } } catch (Exception) { } }
public void LoadData(ref Datas data) { CheckState(ProcessControl.CheckProcess(data.nPID), ref data); }