Пример #1
0
 private static void AddToJumpList(
     JumpList jumpList,
     SavedGameHeader savedGame,
     string title,
     string entryExe,
     string iconFile,
     string category,
     string description)
 {
     jumpList.JumpItems.Add(
         new JumpTask
     {
         CustomCategory   = category,
         ApplicationPath  = entryExe,
         WorkingDirectory = Path.GetDirectoryName(entryExe),
         IconResourcePath = iconFile,
         Title            = title,
         Arguments        = "-SavedGame:\"" + savedGame.FileName + "\"",
         Description      = string.Format(
             description,
             savedGame.LocalPlayerEmpireName,
             savedGame.TurnNumber,
             savedGame.Timestamp.LocalDateTime,
             savedGame.LocalPlayerName)
     });
 }
Пример #2
0
        private void ExecuteLoadGameCommand(SavedGameHeader header)
        {
            var initData = GameInitData.CreateFromSavedGame(header);

            GameLog.Client.General.Debug("doing ExecuteLoadGameCommand ...");
            RunGameController(gameController => gameController.RunLocal(initData), initData.IsMultiplayerGame);
            GameLog.Client.General.Debug("doing gameController.RunLocal(initData) ...");
        }