public string ConfHtml() { var d = new DivBlock(NameOut(), 0, "he0_expanded"); d.AddContainer(DivisionList()); return(d.Html()); }
public string DivDiv() { var d = new DivBlock(Name, 1, "he1_expanded"); d.AddContainer(TeamListDiv()); return(d.Html()); }
private string GameLogDiv() { var gl = new DivBlock("Games", 3, "he3"); gl.AddContainer(GameLog()); return gl.Html() + "\n"; }
public string DefUnits() { var s = String.Empty; if (Filters.DoPassRushUnit()) { var pr = new DivBlock( string.Format("Pass Rush Unit Grade: {0} Exp {1}", _ratings.Substring(3, 1), UnitExperience(PassRushUnit)), 4, "he4h"); pr.AddContainer(PlayerUnit(PassRushUnit)); s += pr.Html() + "\n"; } if (Filters.DoRunDefenceUnit()) { var rd = new DivBlock( string.Format("Run Defence Unit Grade: {0} Exp {1}", _ratings.Substring(4, 1), UnitExperience(RunDefenceUnit)), 4, "he4h"); rd.AddContainer(PlayerUnit(RunDefenceUnit)); s += rd.Html() + "\n"; } if (Filters.DoPassDefenceUnit()) { var pd = new DivBlock( string.Format("Pass Defence Unit Grade: {0} Exp {1}", _ratings.Substring(5, 1), UnitExperience(PassDefenceUnit)), 4, "he4h"); pd.AddContainer(PlayerUnit(PassDefenceUnit)); s += pd.Html() + "\n"; } return s; }
private static string PlayerUnit(ArrayList unitList) { Utility.Announce("NFlTeam.PlayerUnit"); var s = String.Empty; if (unitList != null) { if (unitList.Count > 0) { foreach (NFLPlayer p in unitList) { var pd = new DivBlock(p.PlayerHeader(), 5, "he5h"); pd.AddContainer(p.PlayerDiv()); s += pd.Html(); } } } return s; }
public string UnitTypeDiv() { //RosterLib.Utility.Announce("NFlTeam.UnitTypeDiv for " + TeamCode); string s = String.Empty; if (Filters.DoPassingUnit() || Filters.DoRunningUnit() || Filters.DoProtectionUnit() || Filters.DoKickingUnit()) { var o = new DivBlock(string.Format("Offence {0} Exp {1}", _ratings.Substring(0, 3), OffExp()), 3, "he3"); o.AddContainer(OffUnits()); s += o.Html() + "\n"; } if (Filters.DoPassDefenceUnit() || Filters.DoPassRushUnit() || Filters.DoRunDefenceUnit()) { var d = new DivBlock(string.Format("Defence {0} Exp {1}", _ratings.Substring(3, 3), DefExp()), 3, "he3"); d.AddContainer(DefUnits()); s += d.Html() + "\n"; } //RosterLib.Utility.Announce("NFlTeam.UnitTypeDiv finished for " + TeamCode); return s; }
public string TeamDiv() { var d = new DivBlock(HtmlLib.HtmlPad(Name, 25) + " " + RecordOut(), 2, "he2"); d.AddContainer(TeamDivContents()); return d.Html(); }
public string OffUnits() { var s = String.Empty; if (Filters.DoPassingUnit()) { const string fmt = "Passing Unit Grade: {0} Exp {1}"; var po = new DivBlock( string.Format(fmt, _ratings.Substring(0, 1), UnitExperience(PassingUnit)), 4, "he4h"); po.AddContainer(PlayerUnit(PassingUnit)); s += po.Html() + "\n"; } if (Filters.DoRunningUnit()) { //RosterLib.Utility.Announce(string.Format( "NFlTeam.OffUnits:Doing Running Unit for {0}", TeamCode ) ); var ro = new DivBlock( string.Format("Rushing UnitGrade: {0} Exp {1}", _ratings.Substring(1, 1), UnitExperience(RunningUnit)), 4, "he4h"); ro.AddContainer(PlayerUnit(RunningUnit)); s += ro.Html() + "\n"; } if (Filters.DoProtectionUnit()) { var pp = new DivBlock( string.Format("Pass Protection UnitGrade: {0} Exp {1}", _ratings.Substring(2, 1), UnitExperience(ProtectionUnit)), 4, "he4h"); pp.AddContainer(Unit(ProtectionUnit)); s += pp.Html() + "\n"; } if (Filters.DoKickingUnit()) { var kk = new DivBlock(string.Format("Kicking Exp {0} ", UnitExperience(KickingUnit)), 4, "he4h"); kk.AddContainer(PlayerUnit(KickingUnit)); s += kk.Html() + "\n"; } return s; }
public string ConfHtml() { var d = new DivBlock( NameOut(), 0, "he0_expanded" ); d.AddContainer( DivisionList() ); return d.Html(); }