private static void WriteConferenceNode(XmlWriter writer, NflConference c) { writer.WriteStartElement("conference"); WriteElement(writer, "name", c.NameOut()); WriteDivisionList(writer, c); writer.WriteEndElement(); }
public void LoadNfc(NflConference conf) { Logger.Trace("NewRosterReport:LoadNFC Loading NFC"); conf.AddDiv("East", "A"); conf.AddDiv("North", "B"); conf.AddDiv("South", "C"); conf.AddDiv("West", "D"); Logger.Trace("NewRosterReport:LoadNFC Loading NFC - finished"); }
private static NflConference LoadNfcConference(string season) { var nfc = new NflConference("NFC", season); nfc.QuickAddDiv("East", "A"); nfc.QuickAddDiv("North", "B"); nfc.QuickAddDiv("South", "C"); nfc.QuickAddDiv("West", "D"); return(nfc); }
private static NflConference LoadAfcConference(string season, NflConference nfc) { var afc = new NflConference("AFC", season); nfc.QuickAddDiv("East", "E"); nfc.QuickAddDiv("North", "F"); nfc.QuickAddDiv("South", "G"); nfc.QuickAddDiv("West", "H"); return(afc); }
private static void WriteDivisionList(XmlWriter writer, NflConference c) { writer.WriteStartElement("division-list"); // Division List foreach (NFLDivision d in c.DivList) { WriteDivisionNode(writer, d); } writer.WriteEndElement(); }
public void LoadNfc(NflConference conf) { #if DEBUG Utility.Announce("NewRosterReport:LoadNFC Loading NFC"); #endif conf.AddDiv("East", "A"); conf.AddDiv("North", "B"); conf.AddDiv("South", "C"); conf.AddDiv("West", "D"); //Utility.Announce( "NewRosterReport:LoadNFC Loading NFC - finished" ); }
public void LoadAfc(NflConference conf) { Logger.Trace("NewRosterReport:LoadAFC Loading AFC"); conf.AddDiv("East", "E"); conf.AddDiv("North", "F"); conf.AddDiv("South", "G"); conf.AddDiv("West", "H"); Logger.Trace("NewRosterReport:LoadAFC Loading AFC - finished"); }
private void LoadDivisionList(string yearIn) { Logger.Trace($"LoadDivisionList: Loading {yearIn} division List..."); var nfc = new NflConference("NFC", yearIn); ConferenceList.Add(nfc); LoadNfc(nfc); var afc = new NflConference("AFC", yearIn); ConferenceList.Add(afc); LoadAfc(afc); }
private void LoadDivisionList(string yearIn) { //Utility.Announce( string.Format( "LoadDivisionList: Loading {0} division List...", yearIn ) ); var nfc = new NflConference("NFC", yearIn); ConferenceList.Add(nfc); LoadNfc(nfc); var afc = new NflConference("AFC", yearIn); ConferenceList.Add(afc); LoadAfc(afc); }
public void LoadAfc(NflConference conf) { #if DEBUG Utility.Announce("NewRosterReport:LoadAFC Loading AFC"); #endif conf.AddDiv("East", "E"); conf.AddDiv("North", "F"); conf.AddDiv("South", "G"); conf.AddDiv("West", "H"); #if DEBUG Utility.Announce("NewRosterReport:LoadAFC Loading AFC - finished"); #endif }
/// <summary> /// Creates the 2 NFL conferences. /// </summary> public NFLRosterReport(string season) { TimeTaken = ""; Season = season; Utility.Announce("NewRosterReport Constructor"); _confList = new ArrayList(); Nfc = new NflConference("NFC", season); _confList.Add(Nfc); LoadNfc(); Afc = new NflConference("AFC", season); _confList.Add(Afc); LoadAfc(); ProjectionList = new ArrayList(); Utility.Announce("NewRosterReport Constructor - Done"); }
/// <summary> /// Creates the 2 NFL conferences. /// </summary> public NFLRosterReport(string season) { Logger = LogManager.GetCurrentClassLogger(); TimeTaken = ""; Season = season; TraceIt("NewRosterReport Constructor"); _confList = new ArrayList(); Nfc = new NflConference("NFC", season); _confList.Add(Nfc); LoadNfc(); Afc = new NflConference("AFC", season); _confList.Add(Afc); LoadAfc(); ProjectionList = new ArrayList(); TraceIt("NewRosterReport Constructor - Done"); }
private static void WriteConferenceNode(XmlWriter writer, NflConference c) { writer.WriteStartElement("conference"); WriteElement(writer, "name", c.NameOut() ); WriteDivisionList(writer, c); writer.WriteEndElement(); }
private static NflConference LoadNfcConference( string season ) { var nfc = new NflConference( "NFC", season ); nfc.QuickAddDiv( "East", "A" ); nfc.QuickAddDiv( "North", "B" ); nfc.QuickAddDiv( "South", "C" ); nfc.QuickAddDiv( "West", "D" ); return nfc; }
private static NflConference LoadAfcConference( string season, NflConference nfc ) { var afc = new NflConference( "AFC", season ); nfc.QuickAddDiv( "East", "E" ); nfc.QuickAddDiv( "North", "F" ); nfc.QuickAddDiv( "South", "G" ); nfc.QuickAddDiv( "West", "H" ); return afc; }