Ejemplo n.º 1
0
        protected virtual lDataSync newDataSync(string tblName)
        {
            lDataContent dataContent = CreateDataContent(tblName);
            lDataSync    dataSync    = new lDataSync(dataContent);

            return(dataSync);
        }
Ejemplo n.º 2
0
 public lDataContent CreateDataContent(string tblName)
 {
     if (!m_dataContents.ContainsKey(tblName))
     {
         lDataContent data = newDataContent(tblName);
         m_dataContents.Add(tblName, data);
         return(data);
     }
     else
     {
         return(m_dataContents[tblName]);
     }
 }
Ejemplo n.º 3
0
 public lDataSync CreateDataSync(string tblName)
 {
     if (!m_dataSyncs.ContainsKey(tblName))
     {
         lDataContent dataContent = CreateDataContent(tblName);
         lDataSync    dataSync    = new lDataSync(dataContent);
         m_dataSyncs.Add(tblName, dataSync);
         return(dataSync);
     }
     else
     {
         return(m_dataSyncs[tblName]);
     }
 }
Ejemplo n.º 4
0
 public bool ReleaseDataContent(string tblName)
 {
     if (!m_dataContents.ContainsKey(tblName))
     {
         return(false);
     }
     else
     {
         lDataContent data = m_dataContents[tblName];
         m_dataContents.Remove(tblName);
         data.Dispose();
         return(true);
     }
 }
Ejemplo n.º 5
0
 public lDataSync(lDataContent data)
 {
     m_data             = data;
     m_data.m_refresher = this;
 }