private void _timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { if (PersistentData.Any(obj => !obj.IsValid)) { if (!RuntimeMessages(GH_RuntimeMessageLevel.Error).Contains("所选对象已不存在,请重新选择!")) { AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "所选对象已不存在,请重新选择!"); } } else { if (RuntimeMessages(GH_RuntimeMessageLevel.Error).Contains("所选对象已不存在,请重新选择!")) { ClearRuntimeMessages(); } } // OnVolatileDataCollected(); }