コード例 #1
0
 /// <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();
 }
コード例 #2
0
        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());
            }
        }
コード例 #3
0
 public void SetUp()
 {
     command = new LaunchGameCommand();
     command.showLevelPanelSignal = new ShowLevelPanelSignal();
 }