Exemplo n.º 1
0
        private static void WriteConferenceNode(XmlWriter writer, NflConference c)
        {
            writer.WriteStartElement("conference");
            WriteElement(writer, "name", c.NameOut());

            WriteDivisionList(writer, c);

            writer.WriteEndElement();
        }
Exemplo n.º 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");
 }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 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();
 }
Exemplo n.º 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" );
        }
Exemplo n.º 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");
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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
        }
Exemplo n.º 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");
 }
Exemplo n.º 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");
 }
Exemplo n.º 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");
 }
Exemplo n.º 14
0
        private static void WriteConferenceNode(XmlWriter writer, NflConference c)
        {
            writer.WriteStartElement("conference");
            WriteElement(writer, "name", c.NameOut() );

            WriteDivisionList(writer, c);

            writer.WriteEndElement();
        }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }
Exemplo n.º 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;
 }