示例#1
0
        /// <summary>
        /// Get singleton static instance.
        /// </summary>
        /// <returns></returns>
        public static ProgramScreenCache GetInstance()
        {
            if (m_instance == null)
            {
                m_instance = new ProgramScreenCache();
            }

            return(m_instance);
        }
示例#2
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     this.ProgramScreenList.Clear();
     m_instance = null;
 }