Esempio n. 1
0
        private HtmlLib.HtmTable PlayerTable(string drafted, string no)
        {
            var t = new HtmlLib.HtmTable("BORDER='1' BORDERCOLOR='BLACK' CELPADDING='0' CELLSPACING='0'");

            if (_mStyle == CellStyle.Player)
            {
                AddRow(no + " " + _mName, ref t);
                AddRow(_mSlot + drafted, ref t);
                AddRow(AgeOut(_mName), ref t);
                if (_mName.Length > 0)
                {
                    if (_mPlayer.IsOffence())
                    {
                        AddRow(ScoresOut(_mName), ref t);
                    }
                }
            }
            else
            {
                _mBgColour = "MOCCASIN";
                AddRow(_mSlot, ref t);
                if (_mPlayer != null)
                {
                    _mBgColour = _mPlayer.SetColour("PINK");
                }
                AddRow(_mName, ref t);
                GetRole("B", _mSlot, ref t);
                GetRole(" ", _mSlot, ref t);
            }
            return(t);
        }
Esempio n. 2
0
 public Spot(string spotNameIn, NFLPlayer playerIn)
 {
     //  constructor
     SpotName = spotNameIn.Trim();
     Player = playerIn;
     IsDef = !Player.IsOffence();
 }