public void Run() { try { foreach (var RobotObject in RobotHumanList) { if (RobotObject != null) { RobotObject.Run(); } } } catch { M2Share.MainOutMessage("{异常} TRobotManage::Run"); } }
public void Run() { TRobotObject RobotObject; try { for (int I = 0; I < RobotHumanList.Count; I++) { RobotObject = RobotHumanList[I]; if (RobotObject != null) { RobotObject.Run(); } } } catch { M2Share.MainOutMessage("{异常} TRobotManage::Run"); } }