Exemplo n.º 1
0
 private void OnBuildBegin(vsBuildScope scope, vsBuildAction action)
 {
     if (EngineLoader.IsEngineEnabled())
     {
         buildEventEnableEngine = true;
         EngineLoader.DisableEngine();
     }
 }
Exemplo n.º 2
0
        private void ExecuteChangeTddStud10State(object sender, EventArgs e)
        {
            Logger.LogInfo("Changing TddStud10 state...");

            if (EngineLoader.IsEngineEnabled())
            {
                EngineLoader.DisableEngine();
                SetTddStudioDisable(true);
            }
            else
            {
                EngineLoader.EnableEngine();
                SetTddStudioDisable(false);
            }
        }
Exemplo n.º 3
0
        private void OnBeforeQueryStatusChangeTddStud10State(object sender, EventArgs e)
        {
            Logger.LogInfo("Querying for TddStud10 state...");

            var cmd = sender as OleMenuCommand;

            if (cmd == null)
            {
                Logger.LogError("sender should have been an OleMenuCommand. This is unexpected.");
                return;
            }

            if (!_dte.Solution.IsOpen)
            {
                Logger.LogInfo("Solution is not open.");
                cmd.Visible = false;
                return;
            }

            cmd.Visible = true;
            cmd.Text    = EngineLoader.IsEngineEnabled()
                        ? Properties.Resources.DisableTddStud10State
                        : Properties.Resources.EnableTddStud10State;
        }