/// <summary> /// Updates the can execute commands. /// </summary> private void UpdateCanExecuteCommands() { BrowseFolderCommand.RaiseCanExecuteChanged(); LaunchGameCommand.RaiseCanExecuteChanged(); CreateNewGameCommand.RaiseCanExecuteChanged(); ReloadGameCommand.RaiseCanExecuteChanged(); SetDirectoryCommand.RaiseCanExecuteChanged(); ExportCommand.RaiseCanExecuteChanged(); LaunchRecordingCommand.RaiseCanExecuteChanged(); NavigateCommand.RaiseCanExecuteChanged(); LaunchToolCommand.RaiseCanExecuteChanged(); }
public int LaunchGame(params string[] args) { try { var command = new LaunchGameCommand(); var exitCode = ConsoleCommandDispatcher.DispatchCommand(command, new[] { UpdaterCommands.LaunchGame, "--bypassUAC" }.Concat(args).ToArray(), Console.Out); if (exitCode != 0) { throw new Exception("Error dispatching launchgame"); } return(command.ProcessID); } catch (Exception e) { throw new FaultException(e.ToString()); } }
public void SetUp() { command = new LaunchGameCommand(); command.showLevelPanelSignal = new ShowLevelPanelSignal(); }