Example #1
0
        public override void OnReleased()
        {
            _initialized = false;
            Instance     = null;

            base.OnReleased();
        }
Example #2
0
        public override void OnCreated(IThreading threading)
        {
            Logger.Message("===============================");
            Logger.Message("Initializing auto color monitor");
            Logger.Message("Initializing colors");
            GenericNames.Initialize();

            Logger.Message("Loading current config");
            _config         = Configuration.Instance;
            _colorStrategy  = SetColorStrategy(_config.ColorStrategy);
            _namingStrategy = SetNamingStrategy(_config.NamingStrategy);
            _usedColors     = new NullUsedColors();

            Logger.Message("Found color strategy of " + _config.ColorStrategy);
            Logger.Message("Found naming strategy of " + _config.NamingStrategy);

            _initialized = true;
            Instance     = this;

            Logger.Message("done creating");
            base.OnCreated(threading);
        }