private void Update() { if (sliderNumber == 1) { CollectionOne.SetActive(true); CollectionTwo.SetActive(false); CollectionThree.SetActive(false); CollectionFour.SetActive(false); collectionHeader.text = CollectionOne.gameObject.name; } else if (sliderNumber == 2) { CollectionOne.SetActive(false); CollectionTwo.SetActive(true); CollectionThree.SetActive(false); CollectionFour.SetActive(false); collectionHeader.text = CollectionTwo.gameObject.name; } else if (sliderNumber == 3) { CollectionOne.SetActive(false); CollectionTwo.SetActive(false); CollectionThree.SetActive(true); CollectionFour.SetActive(false); collectionHeader.text = CollectionThree.gameObject.name; } else if (sliderNumber == 4) { CollectionOne.SetActive(false); CollectionTwo.SetActive(false); CollectionThree.SetActive(false); CollectionFour.SetActive(true); collectionHeader.text = CollectionFour.gameObject.name; } }
public ActionResult Single() { Dictionary <string, string> configData = new Dictionary <string, string>(); Section section = WebConfigurationManager.GetWebApplicationSection("group/section") as Section; CollectionTwo collectionTwo = section.CollectionOne[section.Attr].Item; configData.Add(section.Attr, $"The quantity is: {collectionTwo.Count}"); // level 2 foreach (ElementTwo element in collectionTwo) { configData.Add($"> {rnd.Next()}:", $"{element.One} {element.Two}"); } return(this.View("~/Views/Home/Ccs.cshtml", configData)); }