示例#1
0
        public override void Init(ITorchBase torch)
        {
            base.Init(torch);

            var sessionManager = Torch.Managers.GetManager <TorchSessionManager>();

            if (sessionManager != null)
            {
                sessionManager.SessionStateChanged += SessionChanged;
            }
            else
            {
                Log.Warn("No session manager loaded!");
            }

            SetupConfig();
            Plugin = this; // Needed for NoGui
        }
示例#2
0
 public GraceControl(GracePlugin plugin) : this()
 {
     GracePlugin.Plugin = plugin;
     DataContext        = plugin.Config;
 }