Exemplo n.º 1
0
        public void Start()
        {
            Log.Info("Start");
            DontDestroyOnLoad(this);
            FileOperations.MoveCfgToDataDir();

            configuration.Load();
#if (DEBUG)
            Log.SetLevel(Log.LEVEL.INFO);
#else
            Log.SetLevel(configuration.logLevel);
#endif
            configuration.BlizzyToolbarIsAvailable = ToolbarManager.ToolbarAvailable;
            Log.Info("BlizzyToolbarIsAvailable: " + configuration.BlizzyToolbarIsAvailable.ToString());

            if (configuration.BlizzyToolbarIsAvailable)
            {
                InitToolbarButton();
                if (configuration.useBlizzyToolbar)
                {
                    setToolbarButtonVisibility(true);
                }
                else
                {
                    setToolbarButtonVisibility(false);
                }
            }
        }
Exemplo n.º 2
0
        public void Start()
        {
            Log.trace("Start");
            DontDestroyOnLoad(this);
            this.imageConverter = Service.ImageConverter.Create(this);
            FileOperations.MoveCfgToDataDir();

            configuration.Load();
        }