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 bool IClearDataInfo() { var ret = true; lock (_wobiLock) { DataAreaList.Clear(); } return(ret); }
public bool IAddDataInfo(DataInfo item) { var ret = true; lock (_wobiLock) { DataAreaList.Add(item.DataName, item); } return(ret); }
public DataInfo IGetDataInfo(string name) { DataInfo result; if (!DataAreaList.ContainsKey(name)) { result = null; } else { var info = DataAreaList[name]; result = info; } return(result); }