Ejemplo n.º 1
0
        public Spec(Card hotCard)
        {
            InitializeComponent();

            theCard = hotCard;

            lstViewSpec.View = View.List;
            lblCardName.Text = theCard.getTheCardName();

            if (theCard.getSpecial() != "")
            {
                lstViewSpec.Items.Add("Special Field: " + theCard.getSpecial().Trim('}'));
                lstViewSpec.Items[0].BackColor = Color.LightSalmon;
            }

            if (theCard.getSubSpecial().Count != 0)
            {
                ArrayList stuff = theCard.getSubSpecial();

                for (int i = 0; i < stuff.Count; i++)
                {
                    lstViewSpec.Items.Add("Sub Field: " + ((string)stuff[i]).Trim('}'));
                    lstViewSpec.Items[theIndex].BackColor = Color.LightSkyBlue;
                }

                txtSubSpec.Enabled = false;

            }
        }