Esempio n. 1
0
        public override void Init(ITorchBase torch)
        {
            base.Init(torch);

            Instance = this;

            _sessionManager = Torch.Managers.GetManager <TorchSessionManager>();


            if (_sessionManager != null)
            {
                _sessionManager.SessionStateChanged += SessionChanged;
            }

            LoadConfig();
        }
Esempio n. 2
0
 public Control(PluginCore plugin) : this()
 {
     Plugin      = plugin;
     DataContext = plugin.Config;
 }