protected void OnKindsBound(object sender, EventArgs e) { dtKinds = cardsService.FindCardKindes(selectedCard); initSelectedKinds = new ArrayList(); foreach (DataRow row in dtKinds.Rows) { initSelectedKinds.Add(row["kindName"].ToString()); kindsList.Items.FindByValue(row["kindName"].ToString()).Selected = true; } Session["KindsList"] = initSelectedKinds; if (CreatureFields()) { Session["creatureSelected"] = true; int[] attributes = cardsService.GetCreatureAttributes(selectedCard); if (attributes != null) { powerTextBox.Text += attributes[0]; toughnessTextBox.Text += attributes[1]; Session["Attributes"] = new int[] { attributes[0], attributes[1] }; Session["InitAttributes"] = new int[] { attributes[0], attributes[1] }; } } else { Session["creatureSelected"] = false; } Session["kindsDataTable"] = dtKinds; Session["InitKinds"] = dtKinds.Copy(); }