示例#1
0
        private static void WriteConferenceNode(XmlWriter writer, NflConference c)
        {
            writer.WriteStartElement("conference");
            WriteElement(writer, "name", c.NameOut());

            WriteDivisionList(writer, c);

            writer.WriteEndElement();
        }
示例#2
0
 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);
        }
示例#5
0
 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();
 }
示例#6
0
        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" );
        }
示例#7
0
        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");
        }
示例#8
0
        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);
        }
示例#9
0
        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);
        }
示例#10
0
        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
        }
示例#11
0
 /// <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");
 }
示例#12
0
 /// <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");
 }
示例#13
0
 /// <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");
 }
示例#14
0
        private static void WriteConferenceNode(XmlWriter writer, NflConference c)
        {
            writer.WriteStartElement("conference");
            WriteElement(writer, "name", c.NameOut() );

            WriteDivisionList(writer, c);

            writer.WriteEndElement();
        }
示例#15
0
 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;
 }
示例#16
0
 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();
 }
示例#17
0
 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;
 }