public override DataSet Clone()
        {
            DSStartupResources cln = ((DSStartupResources)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
Example #2
0
        /// <summary>
        /// Initiates the CCache
        /// </summary>
        internal Cache()
        {
            //myInterface = callerInterface;
            // Init cache from embedded file
            _startup = new DSStartupResources();
            _startup.ReadXml(
                CEmbeddedResources.GetEmbeddedXmlFile(
                    "Allberg.Shooter.Common.DSStartupResources.xml"));

            // init cache from local file
            _localCacheFilename = CreateLocalFilename();
            _localCache         = new DSLocalCache();
            if (File.Exists(_localCacheFilename))
            {
                _localCache.ReadXml(_localCacheFilename);
            }
        }