private CLocalVersion GetVersionObject(object[] KeyValues) { //创建并获取版本号对象 Hashtable htMod = null; if (!m_htModLocks.ContainsKey(m_nModID)) { htMod = new Hashtable(); m_htModLocks[m_nModID] = new Hashtable(); } htMod = m_htModLocks[m_nModID] as Hashtable; CLocalVersion verobj = null; string strkey = GetKey(KeyValues); if (!htMod.ContainsKey(strkey)) { htMod.Add(strkey, new CLocalVersion()); } verobj = htMod[strkey] as CLocalVersion; return(verobj); }
public override bool Lock(object[] KeyValues) { m_verobj = GetVersionObject(KeyValues); return base.Lock(KeyValues); }
public void UpdateLocalVersion(object[] KeyValues) { m_verobj = GetVersionObject(KeyValues); m_verobj.Version = GetServerLastVersion(KeyValues); }
public override bool Lock(object[] KeyValues) { m_verobj = GetVersionObject(KeyValues); return(base.Lock(KeyValues)); }