private DrawGeneratorInfo GetGenerateInfo(CompetitionDetails details, HebrewWordInverter inverter) { var result = GetDefaultGenerateInfo(); result.DrawTitle = inverter.Invert(details.Name); result.DrawType = inverter.Invert(details.SitePhone) + ", " + inverter.Invert(details.Site); result.DrawOtherInfo = inverter.Invert(details.MainRefereePhone) + ", " + inverter.Invert(details.MainRefereeName); result.DocumentAuthor = "Simple. SAMS - ITA " + DateTime.Now.Year.ToString(); return(result); }
private DrawGeneratorInfo GetGenerateInfo(CompetitionDetails details, HebrewWordInverter inverter) { var result = GetDefaultGenerateInfo(); result.DrawTitle = inverter.Invert(details.Name); result.DrawType = inverter.Invert(details.SitePhone) + ", " + inverter.Invert(details.Site); result.DrawOtherInfo = inverter.Invert(details.MainRefereePhone) + ", " + inverter.Invert(details.MainRefereeName); result.DocumentAuthor = "Simple. SAMS - ITA " + DateTime.Now.Year.ToString(); return result; }
private void SavePlayers(CompetitionPlayer[] players, string playersPath, HebrewWordInverter inverter) { File.WriteAllLines(playersPath, players.Select(p=>string.Format("{0};;;", inverter.Invert(p.FullName)))); }
private void SavePlayers(CompetitionPlayer[] players, string playersPath, HebrewWordInverter inverter) { File.WriteAllLines(playersPath, players.Select(p => string.Format("{0};;;", inverter.Invert(p.FullName)))); }