示例#1
0
        /// <summary>
        /// Initialize cache by load all data on db.
        /// </summary>
        private void InitializeCache()
        {
            // Load all data screen on DB to make cache.
            DatabaseScreenList listScreen = m_bizScreen.LoadScreens();

            DatabaseScreenList.Clear();
            for (int i = 0; i < listScreen.Count; i++)
            {
                DatabaseScreenList.Add(listScreen[i]);
            }
        }
示例#2
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     m_databaseScreenList.Clear();
     m_instance = null;
 }