Beispiel #1
0
        public Image GetWinshooterLogo(int maxImageHeight, int maxImageWidth)
        {
            Image image =
                CEmbeddedResources.GetEmbeddedPicture(
                    "Allberg.Shooter.Common.WinShooterLogga.jpg");

            return(getLogo(image, maxImageHeight, maxImageWidth));
        }
Beispiel #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);
            }
        }