public override void Init(ITorchBase torch) { base.Init(torch); Instance = this; _sessionManager = Torch.Managers.GetManager <TorchSessionManager>(); if (_sessionManager != null) { _sessionManager.SessionStateChanged += SessionChanged; } LoadConfig(); }
public Control(PluginCore plugin) : this() { Plugin = plugin; DataContext = plugin.Config; }