private DropdownVM GetDropDownVMContent(string id) { DropdownVM result = new DropdownVM(); switch (id) { case "1": result.DropdownMenuTitle = "Skor"; result.DropDownLinks = new DropDownLink[] { new DropDownLink("Visa alla", 1), new DropDownLink("Casualskor", 1), new DropDownLink("Businesskor", 1), new DropDownLink("Outdoorskor", 1), new DropDownLink("Finskor", 1) }; break; case "2": result.DropdownMenuTitle = "Varumärken"; result.DropDownLinks = new DropDownLink[] { new DropDownLink("Visa alla", 2), new DropDownLink("Sandberg", 2), new DropDownLink("Dahlin", 2), new DropDownLink("Woolrish", 2), new DropDownLink("Johansson", 2), new DropDownLink("Jigander", 2), new DropDownLink("Fanny", 2), new DropDownLink("Kingsley", 2) }; break; case "3": result.DropdownMenuTitle = "Accessoarer"; result.DropDownLinks = new DropDownLink[] { new DropDownLink("Visa alla", 3), new DropDownLink("Bälten", 3), new DropDownLink("Slipsar", 3), new DropDownLink("Näsdukar", 3) }; break; } return(result); }
void Awake() { data = SaveDataFiler.Load <SaveData>(0); if (data == null) { Debug.Log("Non Save Data"); data = new SaveData(); } viewRoot.Bind(textVM = new TextVM()); viewRoot.Bind(toggleVM = new ToggleVM()); viewRoot.Bind(buttonVM = new ButtonVM()); viewRoot.Bind(dropdownVM = new DropdownVM()); SetDefault(); }
void Awake() { data = SaveDataFiler.Load<SaveData>(0); if (data == null) { Debug.Log("Non Save Data"); data = new SaveData(); } viewRoot.Bind(textVM = new TextVM()); viewRoot.Bind(toggleVM = new ToggleVM()); viewRoot.Bind(buttonVM = new ButtonVM()); viewRoot.Bind(dropdownVM = new DropdownVM()); SetDefault(); }
public IActionResult GetDropDownMenu(string id) { DropdownVM content = GetDropDownVMContent(id); return(PartialView("_DropDownMenuPartial", content)); }