public bool ISetDataVal(string name, object val) { var ret = true; bool result; if (!DataAreaList.ContainsKey(name)) { result = false; } else { lock (_wobiLock) { DataAreaList[name].DataVal = val; DataAreaList[name].DataUpdateFlag = true; DataAreaUptateFlag = true; } var singleObj = new DataObjInfo(); singleObj.DataName = name; singleObj.Context = DataAreaList[name].DataVal; singleObj.Type = DataAreaList[name].DataType; if (OnDataAreaSingleObjRefresh != null) { OnDataAreaSingleObjRefresh(singleObj); } result = ret; } return(result); }
public DataInfo IGetDataInfo(string name) { DataInfo result; if (!DataAreaList.ContainsKey(name)) { result = null; } else { var info = DataAreaList[name]; result = info; } return(result); }