private void OnWorkspaceLoaded(RunnablesViewModel model) { ThreadHelper.ThrowIfNotOnUIThread(); model.SetInSolution(ProjectNames()); foreach (var p in Dte.Solution.AllProjects()) { p.SetStartWebServerOnDebug(false); } }
public WorkspaceViewModel(SolutionStateMachine solutionMachine, WorkspaceStateMachine workspaceMachine, Action <string> writeLog, ISender <IRingCommand> commandSender) { _writeLog = writeLog; _commandSender = commandSender; _runnables = new RunnablesViewModel(writeLog); _solutionMachine = solutionMachine; _workspaceFsm = workspaceMachine; _root = new SubWorkspaceVm(commandSender, writeLog, new WorkspaceInfo("", new RunnableInfo[0], ServerState.IDLE, WorkspaceState.IDLE)); Status = new WorkspaceStatusVm(); Status.None(); IsSyncButtonEnabled = true; IsOpenButtonEnabled = false; FilePathVisibility = Visibility.Collapsed; Configure(_workspaceFsm); }