Пример #1
0
		public static Stream Load(AIGamesCompetition competition, AIGameResult game)
		{
			if (competition == null) { throw new ArgumentNullException("competition"); }
			if (game == null) { throw new ArgumentNullException("game"); }

			var location = GetLocation(competition, game);
			return new FileStream(location.FullName , FileMode.Open, FileAccess.Read);
		}
		public static ComboboxICompetitiontem Create(AIGamesCompetition competition)
		{
			if (competition == null) { throw new ArgumentNullException("competition"); }

			return new ComboboxICompetitiontem()
			{
				Text = competition.DisplayName,
				Value = competition,
			};
		}
Пример #3
0
		public static FileInfo GetLocation(AIGamesCompetition competition, AIGameResult game)
		{
			return new FileInfo(Path.Combine(AppConfig.Games_RootDir_Dump.FullName, competition.UrlKey, string.Format("{0}.log", game.Id)));
		}