public bool SearchCable() { List <CableInfo> cableList; if (!CacheGraph.GetCablesByName(out cableList, SearchText)) { LogControl.LogError("搜索样线缓存失败"); return(false); } CableList.Clear(); foreach (var cable in cableList) { CableList.Add(cable); } return(true); }
private bool UpdataCableGrid() { List <CableInfo> cableList; if (!CacheGraph.GetCables(out cableList)) { LogControl.LogError("读取样线缓存失败"); return(false); } CableList.Clear(); foreach (var cable in cableList) { CableList.Add(cable); } return(true); }