예제 #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();
        }
예제 #2
0
 public Control(PluginCore plugin) : this()
 {
     Plugin      = plugin;
     DataContext = plugin.Config;
 }